The glMatrixMode function specifies which matrix is the current matrix.
void glMatrixMode(
GLenum mode
);
The glMatrixMode function sets the current matrix mode.
The following function retrieves information related to glMatrixMode:
glGet with argument GL_MATRIX_MODE
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_ENUM | mode was not an accepted value. |
GL_INVALID_OPERATION | glMatrixMode was called between a call to glBegin and the corresponding call to glEnd. |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.
glBegin, glEnd, glLoadMatrix, glPushMatrix