I’ve managed to create two viewports in the same window, but the problem is that both viewports keep blinking. seems to be a problem with the buffer or something like that… any suggestions?
my code goes something like this
glViewport (0, glnHeight/2, glnWidth, glnHeight/2);
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
updateCamera(oAibo0->oCabeza->GetBody());
updateTrans(&xtrans, &ytrans, &ztrans);
glTranslatef (xtrans, -ztrans, -ytrans);
glRotatef (xrot,1.0f, 0.0f, 0.0f);
//here goes the drawing of the model
dJointGroupEmpty (contactgroup);
glFlush();
SwapBuffers (hdc);
and the same thing for the other viewport
seems to be a problem with the
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
help!!!