glPushAttrib

push and pop the server attribute stack

Signature

glPopAttrib( ( void ) )-> void
glPopAttrib( )
glPushAttrib( GLbitfield ( mask ) )-> void
glPushAttrib( mask )

Parameters

VariablesDescription
mask
Specifies a mask that indicates which attributes to save. Values for mask are listed below.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glPopAttrib
OpenGLContext tests/shadow_1.py Lines: 473
OpenGLContext OpenGLContext/framecounter.py Lines: 78
OpenGLContext OpenGLContext/scenegraph/shape.py Lines: 61, 96
OpenGLContext OpenGLContext/scenegraph/quadrics.py Lines: 66
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/glFreeType.py Lines: 193, 203, 307
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 65
{LGPL} PyMT pymt/obj.py Lines: 20, 116
{LGPL} PyMT pymt/graphx/draw.py Lines: 213, 272, 432
{LGPL} PyMT pymt/graphx/statement.py Lines: 54, 55, 227, 249, 274
{LGPL} PyMT pymt/graphx/css.py Lines: 14, 120, 136
{LGPL} PyMT pymt/graphx/stencil.py Lines: 20, 64
{LGPL} PyMT pymt/graphx/fbo.py Lines: 19, 228, 275, 286
{LGPL} Pyggel pyggel/data.py Lines: 560
{LGPL} Pyggel pyggel/misc.py Lines: 49
glPushAttrib
OpenGLContext tests/shadow_1.py Lines: 316
OpenGLContext OpenGLContext/framecounter.py Lines: 57
OpenGLContext OpenGLContext/scenegraph/shape.py Lines: 38, 74
OpenGLContext OpenGLContext/scenegraph/quadrics.py Lines: 45
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 104
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson43/glFreeType.py Lines: 187, 200, 271
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 37
{LGPL} PyMT pymt/obj.py Lines: 19, 90
{LGPL} PyMT pymt/graphx/draw.py Lines: 159, 266, 418
{LGPL} PyMT pymt/graphx/statement.py Lines: 56, 224, 242, 268
{LGPL} PyMT pymt/graphx/css.py Lines: 14, 112, 128
{LGPL} PyMT pymt/graphx/stencil.py Lines: 20, 37
{LGPL} PyMT pymt/graphx/fbo.py Lines: 19, 223, 255, 260
{LGPL} Pyggel pyggel/data.py Lines: 547
{LGPL} Pyggel pyggel/misc.py Lines: 23