1GLENABLECLIENTSTATE(3G) OpenGL Manual GLENABLECLIENTSTATE(3G)
2
3
4
6 glEnableClientState - enable or disable client-side capability
7
9 void glEnableClientState(GLenum cap);
10
12 cap
13 Specifies the capability to enable. Symbolic constants
14 GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_FOG_COORD_ARRAY,
15 GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_SECONDARY_COLOR_ARRAY,
16 GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted.
17
19 void glDisableClientState(GLenum cap);
20
22 cap
23 Specifies the capability to disable.
24
26 glEnableClientState and glDisableClientState() enable or disable
27 individual client-side capabilities. By default, all client-side
28 capabilities are disabled. Both glEnableClientState and
29 glDisableClientState() take a single argument, cap, which can assume
30 one of the following values:
31
32 GL_COLOR_ARRAY
33 If enabled, the color array is enabled for writing and used during
34 rendering when glArrayElement(), glDrawArrays(), glDrawElements(),
35 glDrawRangeElements() glMultiDrawArrays(), or glMultiDrawElements()
36 is called. See glColorPointer().
37
38 GL_EDGE_FLAG_ARRAY
39 If enabled, the edge flag array is enabled for writing and used
40 during rendering when glArrayElement(), glDrawArrays(),
41 glDrawElements(), glDrawRangeElements() glMultiDrawArrays(), or
42 glMultiDrawElements() is called. See glEdgeFlagPointer().
43
44 GL_FOG_COORD_ARRAY
45 If enabled, the fog coordinate array is enabled for writing and
46 used during rendering when glArrayElement(), glDrawArrays(),
47 glDrawElements(), glDrawRangeElements() glMultiDrawArrays(), or
48 glMultiDrawElements() is called. See glFogCoordPointer().
49
50 GL_INDEX_ARRAY
51 If enabled, the index array is enabled for writing and used during
52 rendering when glArrayElement(), glDrawArrays(), glDrawElements(),
53 glDrawRangeElements() glMultiDrawArrays(), or glMultiDrawElements()
54 is called. See glIndexPointer().
55
56 GL_NORMAL_ARRAY
57 If enabled, the normal array is enabled for writing and used during
58 rendering when glArrayElement(), glDrawArrays(), glDrawElements(),
59 glDrawRangeElements() glMultiDrawArrays(), or glMultiDrawElements()
60 is called. See glNormalPointer().
61
62 GL_SECONDARY_COLOR_ARRAY
63 If enabled, the secondary color array is enabled for writing and
64 used during rendering when glArrayElement(), glDrawArrays(),
65 glDrawElements(), glDrawRangeElements() glMultiDrawArrays(), or
66 glMultiDrawElements() is called. See glColorPointer().
67
68 GL_TEXTURE_COORD_ARRAY
69 If enabled, the texture coordinate array is enabled for writing and
70 used during rendering when glArrayElement(), glDrawArrays(),
71 glDrawElements(), glDrawRangeElements() glMultiDrawArrays(), or
72 glMultiDrawElements() is called. See glTexCoordPointer().
73
74 GL_VERTEX_ARRAY
75 If enabled, the vertex array is enabled for writing and used during
76 rendering when glArrayElement(), glDrawArrays(), glDrawElements(),
77 glDrawRangeElements() glMultiDrawArrays(), or glMultiDrawElements()
78 is called. See glVertexPointer().
79
81 glEnableClientState is available only if the GL version is 1.1 or
82 greater.
83
84 GL_FOG_COORD_ARRAY and GL_SECONDARY_COLOR_ARRAY are available only if
85 the GL version is 1.4 or greater.
86
87 For OpenGL versions 1.3 and greater, or when ARB_multitexture is
88 supported, enabling and disabling GL_TEXTURE_COORD_ARRAY affects the
89 active client texture unit. The active client texture unit is
90 controlled with glClientActiveTexture().
91
93 GL_INVALID_ENUM is generated if cap is not an accepted value.
94
95 glEnableClientState is not allowed between the execution of glBegin()
96 and the corresponding glEnd(), but an error may or may not be
97 generated. If no error is generated, the behavior is undefined.
98
100 glArrayElement(), glClientActiveTexture(), glColorPointer(),
101 glDrawArrays(), glDrawElements(), glEdgeFlagPointer(),
102 glFogCoordPointer(), glEnable(), glGetPointerv(), glIndexPointer(),
103 glInterleavedArrays(), glNormalPointer(), glSecondaryColorPointer(),
104 glTexCoordPointer(), glVertexPointer()
105
107 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
108 under the SGI Free Software B License. For details, see
109 http://oss.sgi.com/projects/FreeB/.
110
112 opengl.org
113
114
115
116opengl.org 07/13/2018 GLENABLECLIENTSTATE(3G)