GLPUSHATRIB(3G) GLPUSHATRIB(3G)
NAME
glPushAttrib,, glPopAttrib - push and pop the server attribute stack
C SPECIFICATION
void glPushAttrib( GLbitfield mask )
PARAMETERS
mask Specifies a mask that indicates which attributes to save. Values
for mask are listed below.
C SPECIFICATION
void glPopAttrib( void )
DESCRIPTION
glPushAttrib takes one argument, a mask that indicates which groups of
state variables to save on the attribute stack. Symbolic constants are
used to set bits in the mask. mask is typically constructed by ORing
several of these constants together. The special mask
GLALATRIBITS can be used to save all stackable states.
The symbolic mask constants and their associated GL state are as fol-
lows (the second column lists which attributes are saved):
GLACUMBUFERBIT Accumulation buffer clear value
GLCOLORBUFERBIT GLALPHATEST enable bit
Alpha test function and reference value
GLBLEND enable bit
Blending source and destination functions
Constant blend color
Blending equation
GLDITHER enable bit
GLDRAWBUFER setting
GLCOLORLOGICOP enable bit
GLINDEXLOGICOP enable bit
Logic op function
Color mode and index mode clear values
Color mode and index mode writemasks
GLCURENTBIT Current RGBA color
Current color index
Current normal vector
Current texture coordinates
Current raster position
GLCURENTRASTERPOSITIONVALID flag
RGBA color associated with current raster position
Color index associated with current raster position
Texture coordinates associated with current raster position
GLEDGEFLAG flag
GLDEPTHBUFERBIT GLDEPTHTEST enable bit
Depth buffer test function
Depth buffer clear value
GLDEPTHWRITEMASK enable bit
GLENABLEBIT GLALPHATEST flag
GLAUTONORMAL flag
GLBLEND flag
Enable bits for the user-definable clipping planes
GLCOLORMATERIAL
GLCULFACE flag
GLDEPTHTEST flag
GLDITHER flag
GLFOG flag
GLIGHTi where 0 <= i |