I want to draw a scene from 2 different points on view.
But when I do :
glViewPort(0,0,w/2,h);
display();
glViewPort(w/2,0,w/2,h);
display();
glutSwapBuffer();
it only draws in the SECOND ViewPort : (w/2,0,w/2,h)
And when I write
glViewPort(0,0,w/2,h/2);
display();
glViewPort(0,h/2,w/2,h/2);
display();
glviewport(w/2,0,w/2,h/2);
display();
glViewPort(w/2,h/2,w/2,h/2);
display();
glutSwapBuffers();
It also draws only un the LAST ViewPort : (w/2,h/2,w/2,h/2).
Can you help me? Thank you very much.