PDA

View Full Version : My life depends on this But not really hah hah ..........



Na2uRITS
12-18-2000, 06:10 PM
What are the differences in these two types !!?!??!

glMatrixMode(GL_MODELVIEW);
glMatrixMode(GL_PROJECTION);

Bob
12-18-2000, 10:23 PM
GL_MODELVIEW is used to translate/rotate the viewpoint and place/orient the objects in your scene using glTranslate() and glRotate().

GL_PROJECTION is used to project the transformed vertices (after GL_MODELVIEW has beed used) onto the screen. GL_PROJECTION is used by the functions glOrtho(), glFrustum() and gluPerpective().