From: Rajesh R (rajeshr++at++cair.res.in)
Date: 07/08/2005 04:30:29
Dear Performers,
Is there any structure for embedding opengl Programs in my drawCAllback
function. For Instance
void myCallBack(pfChannel *chan, void *data)
{
/*First OPENGLPERFORMER commands */
pfChanClear();
pfDraw();
/* then OPENGL COMMANDS */
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glPerspective(); // or glOrtho
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
//All drawing Commands
glutSwapBuffers(); // or glFlush
or
vice versa
}
I studied the text.c program. I could not makeout necessity of
adding pfPushState,pfBasicState and pfPopMatrix
Any suggestions please.
Rajesh.R
Virtual Reality
Institute for Robotics and Virtual Reality
c/o Centre for AI and Robotics
Defence Research and Development Organization (DRDO)
Ministry of Defence
Bangalore - 1
This archive was generated by hypermail 2b29 : Fri Jul 08 2005 - 04:54:30 PDT