1GLENABLECLIENTSTATE(3G) GLENABLECLIENTSTATE(3G)
2
3
4
6 glEnableClientState, glDisableClientState - enable or disable client-
7 side capability
8
9
11 void glEnableClientState( GLenum cap); 1.1 )
12
13
15 1.1 Specifies the capability to enable. Symbolic constants
16 GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_INDEX_ARRAY,
17 GL_NORMAL_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are
18 accepted.
19
21 void glDisableClientState( GLenum cap); 1.1 )
22
23
25 1.1 Specifies the capability to disable.
26
28 glEnableClientState and glDisableClientState enable or disable individā
29 ual client-side capabilities. By default, all client-side capabilities
30 are disabled. Both glEnableClientState and glDisableClientState take a
31 single argument, 1.1, which can assume one of the following values:
32
33 GL_COLOR_ARRAY If enabled, the color array is enabled for
34 writing and used during rendering when
35 glArrayElement, glDrawArrays, glDrawElement,
36 or glDrawRangeElements is called. See
37 glColorPointer.
38
39 GL_EDGE_FLAG_ARRAY If enabled, the edge flag array is enabled for
40 writing and used during rendering when
41 glArrayElement, glDrawArrays, glDrawElement,
42 or glDrawRangeElements is called. See
43 glEdgeFlagPointer.
44
45 GL_INDEX_ARRAY If enabled, the index array is enabled for
46 writing and used during rendering when
47 glArrayElement, glDrawArrays, glDrawElement,
48 or glDrawRangeElements is called. See
49 glIndexPointer.
50
51 GL_NORMAL_ARRAY If enabled, the normal array is enabled for
52 writing and used during rendering when
53 glArrayElement, glDrawArrays, glDrawElement,
54 or glDrawRangeElements is called. See
55 glNormalPointer.
56
57 GL_TEXTURE_COORD_ARRAY If enabled, the texture coordinate array is
58 enabled for writing and used during rendering
59 when glArrayElement, glDrawArrays,
60 glDrawElement, or glDrawRangeElements is
61 called. See glTexCoordPointer.
62
63 GL_VERTEX_ARRAY If enabled, the vertex array is enabled for
64 writing and used during rendering when
65 glArrayElement, glDrawArrays, glDrawElement,
66 or glDrawRangeElements is called. See
67 glVertexPointer.
68
70 glEnableClientState is available only if the GL version is 1.1 or
71 greater.
72
73 If GL_ARB_multitexture is supported, enabling and disabling
74 GL_TEXTURE_COORD_ARRAY affects the active client texture unit. The
75 active client texture unit is controlled with glClientActiveTextureARB.
76
78 GL_INVALID_ENUM is generated if 1.1 is not an accepted value.
79
80 glEnableClientState is not allowed between the execution of glBegin and
81 the corresponding glEnd, but an error may or may not be generated. If
82 no error is generated, the behavior is undefined.
83
85 glArrayElement(3G), glClientActiveTextureARB(3G), glColorPointer(3G),
86 glDrawArrays(3G), glDrawElements(3G), glEdgeFlagPointer(3G),
87 glEnable(3G), glGetPointerv(3G), glIndexPointer(3G),
88 glInterleavedArrays(3G), glNormalPointer(3G), glTexCoordPointer(3G),
89 glVertexPointer(3G)
90
91
92
93 GLENABLECLIENTSTATE(3G)