GLMATRIXMODE(3G) GLMATRIXMODE(3G)
NAME
glatrixode - specify which matrix is the current matrix
C SPECIFICATION
void glatrixode( GLenum mode )
PARAMETERS
mode Specifies which matrix stack is the target for subsequent matrix
operations. Three values are accepted: GLMODELVIEW,
GLPROJECTION, and GLTEXTURE. The initial value is
GLMODELVIEW.
Additionally, if the GLARBimaging extension is supported,
GLCOLOR is also accepted.
DESCRIPTION
glatrixode sets the current matrix mode. mode can assume one of four
values:
GLMODELVIEW Applies subsequent matrix operations to the
modelview matrix stack.
GLPROJECTION Applies subsequent matrix operations to the
projection matrix stack.
GLTEXTURE Applies subsequent matrix operations to the
texture matrix stack.
GLCOLOR Applies subsequent matrix operations to the
color matrix stack.
To find out which matrix stack is currently the target of all matrix
operations, call glGet with argument GLMATRIXMODE. The initial value
is GLMODELVIEW.
ERORS
GLINVALIDENUM is generated if mode is not an accepted value.
GLINVALIDOPERATION is generated if glatrixode is executed between
the execution of glBegin and the corresponding execution of glEnd.
ASOCIATED GETS
glGet with argument GLMATRIXMODE
SEE ALSO
glLoadatrix, glPushatrix
GLMATRIXMODE(3G)
|