void glMatrixMode(GLenum mode)
mode | Specifies which matrix stack is the target for subsequent matrix operations. Four value are accepted: GL_MODELVIEW, GL_PROJECTION, GL_TEXTURE, and GL_COLOR_MATRIX_EXT. |
GL_INVALID_OPERATION is generated if glMatrixMode is called between a call to glEnd.