GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLPUSHMATRIX

GLPUSHMATRIX

Index
 

NAME

glPushMatrix, glPopMatrix - push and pop the current matrix stack

 

C SPECIFICATION

void f3glPushMatrixfP( void )


 

C SPECIFICATION

void f3glPopMatrixfP( void )


 

DESCRIPTION

There is a stack of matrices for each of the matrix modes. In %f3GL_MODELVIEWfP mode, the stack depth is at least 32. In the other modes, %f3GL_COLORfP, const(PROJECTION), and %f3GL_TEXTUREfP, the depth is at least 2. The current matrix in any mode is the matrix on the top of the stack for that mode. %f3glPushMatrixfP pushes the current matrix stack down by one, duplicating the current matrix. That is, after a %f3glPushMatrixfP call, the matrix on top of the stack is identical to the one below it. %f3glPopMatrixfP 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

%f3GL_STACK_OVERFLOWfP is generated if %f3glPushMatrixfP is called while the current matrix stack is full. %f3GL_STACK_UNDERFLOWfP is generated if %f3glPopMatrixfP is called while the current matrix stack contains only a single matrix. %f3GL_INVALID_OPERATIONfP is generated if %f3glPushMatrixfP or %f3glPopMatrixfP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.  

ASSOCIATED GETS

%f3glGetfP with argument %f3GL_MATRIX_MODEfP
%f3glGetfP with argument %f3GL_COLOR_MATRIXfP
%f3glGetfP with argument %f3GL_MODELVIEW_MATRIXfP
%f3glGetfP with argument %f3GL_PROJECTION_MATRIXfP
%f3glGetfP with argument %f3GL_TEXTURE_MATRIXfP
%f3glGetfP with argument %f3GL_COLOR_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_MODELVIEW_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_PROJECTION_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_TEXTURE_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_MAX_MODELVIEW_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_MAX_PROJECTION_STACK_DEPTHfP
%f3glGetfP with argument %f3GL_MAX_TEXTURE_STACK_DEPTHfP  

SEE ALSO

%f3glFrustum(3G)fP, %f3glLoadIdentity(3G)fP, %f3glLoadMatrix(3G)fP, %f3glMatrixMode(3G)fP, %f3glMultMatrix(3G)fP, %f3glOrtho(3G)fP, %f3glRotate(3G)fP, %f3glScale(3G)fP, %f3glTranslate(3G)fP, %f3glViewport(3G)fP


 

Index

NAME
C SPECIFICATION
C SPECIFICATION
DESCRIPTION
ERRORS
ASSOCIATED GETS
SEE ALSO