1GLPUSHCLIENTATTRIB(3G)                                  GLPUSHCLIENTATTRIB(3G)
2
3
4

NAME

6       glPushClientAttrib,   glPopClientAttrib  -  push  and  pop  the  client
7       attribute stack
8
9

C SPECIFICATION

11       void glPushClientAttrib( GLbitfield mask);  1.1 )
12
13

PARAMETERS

15       1.1  Specifies a mask that indicates which attributes to save.   Values
16            for 1.1 are listed below.
17

C SPECIFICATION

19       void glPopClientAttrib( void);  1.1 )
20
21

DESCRIPTION

23       glPushClientAttrib  takes  one  argument,  a  mask that indicates which
24       groups of client-state variables to save on the client attribute stack.
25       Symbolic  constants are used to set bits in the mask.  1.1 is typically
26       constructed by OR'ing several of these constants together.  The special
27       mask GL_CLIENT_ALL_ATTRIB_BITS can be used to save all stackable client
28       state.
29
30       The symbolic mask constants and their associated GL client state are as
31       follows (the second column lists which attributes are saved):
32
33       GL_CLIENT_PIXEL_STORE_BIT     Pixel storage modes
34       GL_CLIENT_VERTEX_ARRAY_BIT    Vertex arrays (and enables)
35
36       glPopClientAttrib  restores  the  values  of the client-state variables
37       saved with the last  glPushClientAttrib.   Those  not  saved  are  left
38       unchanged.
39
40       It  is  an error to push attributes onto a full client attribute stack,
41       or to pop attributes off an empty stack.  In  either  case,  the  error
42       flag is set, and no other change is made to GL state.
43
44       Initially, the client attribute stack is empty.
45

NOTES

47       glPushClientAttrib  is  available  only  if  the  GL  version is 1.1 or
48       greater.
49
50       Not all values for GL client state can be saved on the attribute stack.
51       For example, select and feedback state cannot be saved.
52
53       The  depth of the attribute stack depends on the implementation, but it
54       must be at least 16.
55
56       Use glPushAttrib and glPopAttrib to push and  restore  state  which  is
57       kept on the server. Only pixel storage modes and vertex array state may
58       be pushed and popped with glPushClientAttrib and glPopClientAttrib.
59
60       When the GL_ARB_multitexture extension is supported, pushing  and  pop‐
61       ping  client  vertex array state apples to all supported texture units,
62       and the active client texture state.
63

ERRORS

65       GL_STACK_OVERFLOW is generated if glPushClientAttrib  is  called  while
66       the attribute stack is full.
67
68       GL_STACK_UNDERFLOW  is  generated  if glPopClientAttrib is called while
69       the attribute stack is empty.
70

ASSOCIATED GETS

72       glGet with argument GL_ATTRIB_STACK_DEPTH
73       glGet with argument GL_MAX_CLIENT_ATTRIB_STACK_DEPTH
74

SEE ALSO

76       glColorPointer(3G),  glDisableClientState(3G),   glEdgeFlagPointer(3G),
77       glEnableClientState(3G), glGet(3G), glGetError(3G), glIndexPointer(3G),
78       glNormalPointer(3G), glNewList(3G), glPixelStore(3G), glPushAttrib(3G),
79       glTexCoordPointer(3G), glVertexPointer(3G)
80
81
82
83                                                        GLPUSHCLIENTATTRIB(3G)
Impressum