NAME
glPushMatrix, glPopMatrix
- push and pop the current matrix stack
C SPECIFICATION
void ggllPPuusshhMMaattrriixx( void )
C SPECIFICATION
void ggllPPooppMMaattrriixx( void )
DESCRIPTION
There is a stack of matrices for each of the matrix modes.
In GGLL__MMOODDEELLVVIIEEWW mode,
the stack depth is at least 32.
In the other modes,
GGLL__CCOOLLOORR, const(PROJECTION), and GGLL__TTEEXXTTUURREE,
the depth is at least 2.
The current matrix in any mode is the matrix on the top of the stack
for that mode.
ggllPPuusshhMMaattrriixx pushes the current matrix stack down by one,
duplicating the current matrix.
That is,
after a ggllPPuusshhMMaattrriixx call,
the matrix on top of the stack is identical to the one below it.
ggllPPooppMMaattrriixx pops the current matrix stack,
replacing the current matrix with the one below it on the stack.
Initially, each of the stacks contains one matrix, an identity matrix.
It is an error to push a full matrix stack,
or to pop a matrix stack that contains only a single matrix.
In either case, the error flag is set
and no other change is made to GL state.
ERRORS
GGLL__SSTTAACCKK__OOVVEERRFFLLOOWW is generated if ggllPPuusshhMMaattrriixx is called while
the current matrix stack is full.
GGLL__SSTTAACCKK__UUNNDDEERRFFLLOOWW is generated if ggllPPooppMMaattrriixx is called while
the current matrix stack contains only a single matrix.
GGLL__IINNVVAALLIIDD__OOPPEERRAATTIIOONN is generated if ggllPPuusshhMMaattrriixx or ggllPPooppMMaattrriixx
is executed between the execution of ggllBBeeggiinn
and the corresponding execution of ggllEEnndd.
ASSOCIATED GETS
ggllGGeett with argument GGLL__MMAATTRRIIXX__MMOODDEE
ggllGGeett with argument GGLL__CCOOLLOORR__MMAATTRRIIXX
ggllGGeett with argument GGLL__MMOODDEELLVVIIEEWW__MMAATTRRIIXX
ggllGGeett with argument GGLL__PPRROOJJEECCTTIIOONN__MMAATTRRIIXX
ggllGGeett with argument GGLL__TTEEXXTTUURREE__MMAATTRRIIXX
ggllGGeett with argument GGLL__CCOOLLOORR__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__MMOODDEELLVVIIEEWW__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__PPRROOJJEECCTTIIOONN__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__TTEEXXTTUURREE__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__MMAAXX__MMOODDEELLVVIIEEWW__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__MMAAXX__PPRROOJJEECCTTIIOONN__SSTTAACCKK__DDEEPPTTHH
ggllGGeett with argument GGLL__MMAAXX__TTEEXXTTUURREE__SSTTAACCKK__DDEEPPTTHH
SEE ALSO
ggllFFrruussttuumm((33GG)),
ggllLLooaaddIIddeennttiittyy((33GG)),
ggllLLooaaddMMaattrriixx((33GG)),
ggllMMaattrriixxMMooddee((33GG)),
ggllMMuullttMMaattrriixx((33GG)),
ggllOOrrtthhoo((33GG)),
ggllRRoottaattee((33GG)),
ggllSSccaallee((33GG)),
ggllTTrraannssllaattee((33GG)),
ggllVViieewwppoorrtt((33GG))