Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 5.6

glPushAttrib(3gl)


GLPUSHATTRIB

GLPUSHATTRIB

NAME
C SPECIFICATION
PARAMETERS
C SPECIFICATION
DESCRIPTION
NOTES
ERRORS
ASSOCIATED GETS
SEE ALSO

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 GL_ALL_ATTRIB_BITS can be used to save all stackable states.

The symbolic mask constants and their associated GL state are as follows (the second column lists which attributes are saved):

 

Image /web_man_pages/man_unzipped/en/centos/5/5.61.png

glPopAttrib restores the values of the state variables saved with the last
glPushAttrib
command. Those not saved are left unchanged.

It is an error to push attributes onto a full stack, or to pop attributes off an empty stack. In either case, the error flag is set and no other change is made to GL state.

Initially, the attribute stack is empty.

NOTES

Not all values for GL state can be saved on the attribute stack. For example, render mode state, and select and feedback state cannot be saved. Client state must be saved with glPushClientAttrib.

The depth of the attribute stack depends on the implementation, but it must be at least 16.

When the GL_ARB_multitexture extension is supported, pushing and popping texture state apples to all supported texture units.

ERRORS

GL_STACK_OVERFLOW is generated if glPushAttrib is called while the attribute stack is full.

GL_STACK_UNDERFLOW is generated if glPopAttrib is called while the attribute stack is empty.

GL_INVALID_OPERATION is generated if glPushAttrib or glPopAttrib is executed between the execution of glBegin and the corresponding execution of glEnd.

ASSOCIATED GETS

glGet with argument GL_ATTRIB_STACK_DEPTH
glGet
with argument GL_MAX_ATTRIB_STACK_DEPTH

SEE ALSO

glGet(3G), glGetClipPlane(3G), glGetError(3G), glGetLight(3G), glGetMap(3G), glGetMaterial(3G),
glGetPixelMap(3G)
, glGetPolygonStipple(3G), glGetString(3G), glGetTexEnv(3G), glGetTexGen(3G), glGetTexImage(3G), glGetTexLevelParameter(3G), glGetTexParameter(3G), glIsEnabled(3G), glPushClientAttrib(3G)



glPushAttrib(3gl)