Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glpopclientattrib(3g) [xfree86 man page]

GLPUSHCLIENTATTRIB(3G)													    GLPUSHCLIENTATTRIB(3G)

NAME
glPushClientAttrib, glPopClientAttrib - push and pop the client attribute stack C SPECIFICATION
void glPushClientAttrib( GLbitfield mask); 1.1 ) PARAMETERS
1.1 Specifies a mask that indicates which attributes to save. Values for 1.1 are listed below. C SPECIFICATION
void glPopClientAttrib( void); 1.1 ) DESCRIPTION
glPushClientAttrib takes one argument, a mask that indicates which groups of client-state variables to save on the client attribute stack. Symbolic constants are used to set bits in the mask. 1.1 is typically constructed by OR'ing several of these constants together. The spe- cial mask GL_CLIENT_ALL_ATTRIB_BITS can be used to save all stackable client state. The symbolic mask constants and their associated GL client state are as follows (the second column lists which attributes are saved): GL_CLIENT_PIXEL_STORE_BIT Pixel storage modes GL_CLIENT_VERTEX_ARRAY_BIT Vertex arrays (and enables) glPopClientAttrib restores the values of the client-state variables saved with the last glPushClientAttrib. Those not saved are left unchanged. It is an error to push attributes onto a full client attribute 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 client attribute stack is empty. NOTES
glPushClientAttrib is available only if the GL version is 1.1 or greater. Not all values for GL client state can be saved on the attribute stack. For example, select and feedback state cannot be saved. The depth of the attribute stack depends on the implementation, but it must be at least 16. Use glPushAttrib and glPopAttrib to push and restore state which is kept on the server. Only pixel storage modes and vertex array state may be pushed and popped with glPushClientAttrib and glPopClientAttrib. When the GL_ARB_multitexture extension is supported, pushing and popping client vertex array state apples to all supported texture units, and the active client texture state. ERRORS
GL_STACK_OVERFLOW is generated if glPushClientAttrib is called while the attribute stack is full. GL_STACK_UNDERFLOW is generated if glPopClientAttrib is called while the attribute stack is empty. ASSOCIATED GETS
glGet with argument GL_ATTRIB_STACK_DEPTH glGet with argument GL_MAX_CLIENT_ATTRIB_STACK_DEPTH SEE ALSO
glColorPointer(3G), glDisableClientState(3G), glEdgeFlagPointer(3G), glEnableClientState(3G), glGet(3G), glGetError(3G), glIndexPointer(3G), glNormalPointer(3G), glNewList(3G), glPixelStore(3G), glPushAttrib(3G), glTexCoordPointer(3G), glVertexPointer(3G) GLPUSHCLIENTATTRIB(3G)

Check Out this Related Man Page

GLEDGEFLAGPOINTER(3G)													     GLEDGEFLAGPOINTER(3G)

NAME
glEdgeFlagPointer - define an array of edge flags C SPECIFICATION
void glEdgeFlagPointer( GLsizei stride, const GLboolean *pointer ) PARAMETERS
stride Specifies the byte offset between consecutive edge flags. If stride is 0 (the initial value), the edge flags are understood to be tightly packed in the array. The initial value is 0. pointer Specifies a pointer to the first edge flag in the array. The initial value is zero. DESCRIPTION
glEdgeFlagPointer specifies the location and data of an array of boolean edge flags to use when rendering. stride specifies the byte stride from one edge flag to the next allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see glInterleavedArrays.) When an edge flag array is specified, stride and pointer are saved as client-side state. To enable and disable the edge flag array, call glEnableClientState and glDisableClientState with the argument GL_EDGE_FLAG_ARRAY. If enabled, the edge flag array is used when glDrawArrays, glDrawElements, or glArrayElement is called. Use glDrawArrays to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use glArrayElement to specify primitives by indexing vertices and vertex attributes and glDrawElements to construct a sequence of primitives by indexing vertices and vertex attributes. NOTES
glEdgeFlagPointer is available only if the GL version is 1.1 or greater. The edge flag array is initially disabled and it won't be accessed when glArrayElement, glDrawElements or glDrawArrays is called. Execution of glEdgeFlagPointer is not allowed between the execution of glBegin and the corresponding execution of glEnd, but an error may or may not be generated. If no error is generated, the operation is undefined. glEdgeFlagPointer is typically implemented on the client side. Edge flag array parameters are client-side state and are therefore not saved or restored by glPushAttrib and glPopAttrib. Use glPushClientAttrib and glPopClientAttrib instead. ERRORS
GL_INVALID_ENUM is generated if stride is negative. ASSOCIATED GETS
glIsEnabled with argument GL_EDGE_FLAG_ARRAY glGet with argument GL_EDGE_FLAG_ARRAY_STRIDE glGetPointerv with argument GL_EDGE_FLAG_ARRAY_POINTER SEE ALSO
glArrayElement, glColorPointer, glDrawArrays, glDrawElements, glEnable, glGetPointerv, glIndexPointer, glNormalPointer, glPopClientAttrib, glPushClientAttrib, glTexCoordPointer, glVertexPointer GLEDGEFLAGPOINTER(3G)
Man Page