Name
gl.PopMatrix -- pop the current matrix stack
Synopsis
gl.PopMatrix()
Function
gl.PopMatrix() 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 pop a matrix stack that contains only a single matrix. In that case, the error flag is set and no other change is made to GL state.

Please consult an OpenGL reference manual for more information.

Inputs
none

Errors
#GL_STACK_UNDERFLOW is generated if gl.PopMatrix() is called while the current matrix stack contains only a single matrix.

#GL_INVALID_OPERATION is generated if gl.PopMatrix() is executed between the execution of gl.Begin() and the corresponding execution of gl.End().

Associated gets
gl.Get() with argument #GL_MATRIX_MODE

gl.Get() with argument #GL_MODELVIEW_MATRIX

gl.Get() with argument #GL_PROJECTION_MATRIX

gl.Get() with argument #GL_TEXTURE_MATRIX

gl.Get() with argument #GL_MODELVIEW_STACK_DEPTH

gl.Get() with argument #GL_PROJECTION_STACK_DEPTH

gl.Get() with argument #GL_TEXTURE_STACK_DEPTH

gl.Get() with argument #GL_MAX_MODELVIEW_STACK_DEPTH

gl.Get() with argument #GL_MAX_PROJECTION_STACK_DEPTH

gl.Get() with argument #GL_MAX_TEXTURE_STACK_DEPTH


Show TOC