NAME
glMatrixMode
- specify which matrix is the current matrix
C SPECIFICATION
void ggllMMaattrriixxMMooddee(
GLenum _m_o_d_e )
PARAMETERS
-
_m_o_d_e
-
Specifies which matrix stack is the target
for subsequent matrix operations.
Three values are accepted:
GGLL__MMOODDEELLVVIIEEWW,
GGLL__PPRROOJJEECCTTIIOONN, and
GGLL__TTEEXXTTUURREE.
The initial value is GGLL__MMOODDEELLVVIIEEWW.
Additionally, if the GGLL__AARRBB__iimmaaggiinngg extension is supported,
GGLL__CCOOLLOORR is also accepted.
DESCRIPTION
ggllMMaattrriixxMMooddee sets the current matrix mode.
_m_o_d_e can assume one of four values:
-
GGLL__MMOODDEELLVVIIEEWW
-
Applies subsequent matrix operations to the modelview matrix stack.
-
GGLL__PPRROOJJEECCTTIIOONN
-
Applies subsequent matrix operations to the projection matrix stack.
-
GGLL__TTEEXXTTUURREE
-
Applies subsequent matrix operations to the texture matrix stack.
-
GGLL__CCOOLLOORR
-
Applies subsequent matrix operations to the color matrix stack.
To find out which matrix stack is currently the target of all matrix
operations, call ggllGGeett with argument GGLL__MMAATTRRIIXX__MMOODDEE. The initial
value is GGLL__MMOODDEELLVVIIEEWW.
ERRORS
GGLL__IINNVVAALLIIDD__EENNUUMM is generated if _m_o_d_e is not an accepted value.
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllMMaattrriixxMMooddee
is executed between the execution of ggllBBeeggiinn
and the corresponding execution of ggllEEnndd.
ASSOCIATED GETS
ggllGGeett with argument GGLL__MMAATTRRIIXX__MMOODDEE
SEE ALSO
ggllLLooaaddMMaattrriixx((33GG)),
ggllPPuusshhMMaattrriixx((33GG))