1GLPUSHCLIENTATTRIB(3G) OpenGL Manual GLPUSHCLIENTATTRIB(3G)
2
3
4
6 glPushClientAttrib - push and pop the client attribute stack
7
9 void glPushClientAttrib(GLbitfield mask);
10
12 mask
13 Specifies a mask that indicates which attributes to save. Values
14 for mask are listed below.
15
17 void glPopClientAttrib(void);
18
20 glPushClientAttrib takes one argument, a mask that indicates which
21 groups of client-state variables to save on the client attribute stack.
22 Symbolic constants are used to set bits in the mask. mask is typically
23 constructed by specifying the bitwise-or of several of these constants
24 together. The special mask GL_CLIENT_ALL_ATTRIB_BITS can be used to
25 save all stackable client state.
26
27 The symbolic mask constants and their associated GL client state are as
28 follows (the second column lists which attributes are saved):
29
30 GL_CLIENT_PIXEL_STORE_BIT Pixel storage modes
31 GL_CLIENT_VERTEX_ARRAY_BIT Vertex arrays (and enables)
32
33 glPopClientAttrib() restores the values of the client-state variables
34 saved with the last glPushClientAttrib. Those not saved are left
35 unchanged.
36
37 It is an error to push attributes onto a full client attribute stack or
38 to pop attributes off an empty stack. In either case, the error flag is
39 set, and no other change is made to GL state.
40
41 Initially, the client attribute stack is empty.
42
44 glPushClientAttrib is available only if the GL version is 1.1 or
45 greater.
46
47 Not all values for GL client state can be saved on the attribute stack.
48 For example, select and feedback state cannot be saved.
49
50 The depth of the attribute stack depends on the implementation, but it
51 must be at least 16.
52
53 Use glPushAttrib() and glPopAttrib() to push and restore state that is
54 kept on the server. Only pixel storage modes and vertex array state may
55 be pushed and popped with glPushClientAttrib and glPopClientAttrib().
56
57 For OpenGL versions 1.3 and greater, or when the ARB_multitexture
58 extension is supported, pushing and popping client vertex array state
59 applies to all supported texture units, and the active client texture
60 state.
61
63 GL_STACK_OVERFLOW is generated if glPushClientAttrib is called while
64 the attribute stack is full.
65
66 GL_STACK_UNDERFLOW is generated if glPopClientAttrib() is called while
67 the attribute stack is empty.
68
70 glGet() with argument GL_ATTRIB_STACK_DEPTH
71
72 glGet() with argument GL_MAX_CLIENT_ATTRIB_STACK_DEPTH
73
75 glColorPointer(), glDisableClientState(), glEdgeFlagPointer(),
76 glEnableClientState(), glFogCoordPointer(), glGet(), glGetError(),
77 glIndexPointer(), glNormalPointer(), glNewList(), glPixelStore(),
78 glPushAttrib(), glTexCoordPointer(), glVertexPointer()
79
81 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
82 under the SGI Free Software B License. For details, see
83 http://oss.sgi.com/projects/FreeB/.
84
86 opengl.org
87
88
89
90opengl.org 07/13/2018 GLPUSHCLIENTATTRIB(3G)