Strange Callback function
LEE DONG-JOO (djlee++at++renoir.sait.samsung.co.kr)
Fri, 28 Jun 1996 10:20:01 -0700
Hi, Performers.
I have found a strange statement in Performer sample program provided by default.
In my system, the sample program is located at
/usr/share/Performer/src/pguide/libpf/C/pipewin.c.
The following is the part of that program.
int main()
{
pfChannel *chan;
...
pfChanTravFunc(chan, PFTRAV_CULL, CullChannel);
pfChanTravFunc(chan, PFTRAV_DRAW, DrawChannel);
...
}
static void CullChannel(pfChannel *chan, void *data)
{
(chan, data);
pfCull();
}
static void DrawChannel(pfChannel *chan, void *data)
{
(chan, data);
...
pfDraw();
...
}
In above program, I can't understand the meaning of the "(chan,data);" statement.
Any comments would be greatly appreciated.
==========================================
Dong J. LEE
-----------
Virtual Reality Team/Graphics Lab.
Samsung Advanced Institute of Technology
tel) 82-331-280-9232
fax) 82-331-280-9208
e-mail) djlee++at++renoir.sait.samsung.co.kr
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:53:05 PDT