Perspective Matrix

Is the Perspective matrice set when the gluPerspective is called? does it remain the same the rest of the time if you are working with the MODELVIEW matrix? I am trying to minimize the amount of glGet* calls

Thanks

The projection matrix is not set, but rather multiplied with the currently activated matrix stack. If you want to ‘set’ the projection matrix, you have to do the following:

glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(…);

And it will remain the same when working with the modelview matrix.

Thanks , That answered my question