Specifies the current matrix.
OpenGL C bindings library: libGL.a
void glMatrixMode(GLenum Mode)
|Mode||Specifies which matrix stack is the target for subsequent matrix operations. The following three values are accepted:|
The glMatrixMode subroutine sets the current matrix mode. The Mode parameter can assume one of the following three values:
|GL_MODELVIEW||Applies subsequent matrix operations to the model view matrix stack.|
|GL_PROJECTION||Applies subsequent matrix operations to the projection matrix stack.|
|GL_TEXTURE||Applies subsequent matrix operations to the texture matrix stack.|
Associated gets for the glMatrixMode subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_MATRIX_MODE.
|GL_INVALID_ENUM||Mode is not an accepted value.|
|GL_INVALID_OPERATION||The glMatrixMode subroutine is called between a call to glBegin and the corresponding call to glEnd.|
|/usr/include/GL/gl.h||Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.|
The glBegin or glEnd subroutine, glLoadMatrix subroutine, glPushMatrix subroutine.