Definition: |
include pGUI.e
include opengl.e glMatrixMode(integer mode) |
Description: |
The glMatrixMode function specifies which matrix is the current matrix.
mode: The matrix stack that is the target for subsequent matrix operations. The mode parameter can assume one of three values, as defined in opengl.e: global constant GL_MODELVIEW = #1700, -- Applies subsequent matrix operations to -- the modelview matrix stack. GL_PROJECTION = #1701, -- Applies subsequent matrix operations to -- the projection matrix stack. GL_TEXTURE = #1702 -- Applies subsequent matrix operations to -- the texture matrix stack. If mode is none of the above values, glGetError() will return GL_INVALID_ENUM. If called between glBegin and glEnd, glGetError() will return GL_INVALID_OPERATION. |
Remarks |
The glMatrixMode function sets the current matrix mode.
The following function retrieves information related to glMatrixMode: glGet with argument GL_MATRIX_MODE |
See Also: |
glBegin,
glEnd,
?glEnd,
glPushMatrix
DEV See also --glBegin --glEnd glLoadMatrix --glPushMatrix |