Name
gl.PopAttrib -- pop the server attribute stack
Synopsis
gl.PopAttrib()
Function
gl.PopAttrib() restores the values of the state variables saved with the last gl.PushAttrib() command. Those not saved are left unchanged.

See gl.PushAttrib for a list of supported state variables.

It is an error to pop attributes off an empty stack. 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.PopAttrib() is called while the attribute stack is empty.

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

Associated gets
gl.Get() with argument #GL_ATTRIB_STACK_DEPTH

gl.Get() with argument #GL_MAX_ATTRIB_STACK_DEPTH


Show TOC