1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
2 <!-- saved from url=(0013)about:internet -->
3 <?xml-stylesheet type=
"text/xsl" href=
"mathml.xsl"?><html xmlns=
"http://www.w3.org/1999/xhtml" xmlns:
pref=
"http://www.w3.org/2002/Math/preference" pref:
renderer=
"mathplayer-dl"><head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" /><title>glEnableClientState
</title><meta name=
"generator" content=
"DocBook XSL Stylesheets V1.73.2" /></head><body><div class=
"refentry" lang=
"en" xml:
lang=
"en"><a id=
"glEnableClientState"></a><div class=
"titlepage"></div><div class=
"refnamediv"><h2>Name
</h2><p>glEnableClientState — enable or disable client-side capability
</p></div><div class=
"refsynopsisdiv"><h2>C Specification
</h2><div class=
"funcsynopsis"><table border=
"0" summary=
"Function synopsis" cellspacing=
"0" cellpadding=
"0"><tr><td><code class=
"funcdef">void
<b class=
"fsfunc">glEnableClientState
</b>(
</code></td><td>GLenum
</td><td><var class=
"pdparam">cap
</var><code>)
</code>;
</td></tr></table></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"parameters"></a><h2>Parameters
</h2><div class=
"variablelist"><dl><dt><span class=
"term"><em class=
"parameter"><code>cap
</code></em></span></dt><dd><p>
4 Specifies the capability to enable.
6 <code class=
"constant">GL_COLOR_ARRAY
</code>,
7 <code class=
"constant">GL_EDGE_FLAG_ARRAY
</code>,
8 <code class=
"constant">GL_FOG_COORD_ARRAY
</code>,
9 <code class=
"constant">GL_INDEX_ARRAY
</code>,
10 <code class=
"constant">GL_NORMAL_ARRAY
</code>,
11 <code class=
"constant">GL_SECONDARY_COLOR_ARRAY
</code>,
12 <code class=
"constant">GL_TEXTURE_COORD_ARRAY
</code>, and
13 <code class=
"constant">GL_VERTEX_ARRAY
</code>
15 </p></dd></dl></div></div><div class=
"refsynopsisdiv"><h2>C Specification
</h2><div class=
"funcsynopsis"><table border=
"0" summary=
"Function synopsis" cellspacing=
"0" cellpadding=
"0"><tr><td><code class=
"funcdef">void
<b class=
"fsfunc">glDisableClientState
</b>(
</code></td><td>GLenum
</td><td><var class=
"pdparam">cap
</var><code>)
</code>;
</td></tr></table></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"parameters2"></a><h2>Parameters
</h2><div class=
"variablelist"><dl><dt><span class=
"term"><em class=
"parameter"><code>cap
</code></em></span></dt><dd><p>
16 Specifies the capability to disable.
17 </p></dd></dl></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"description"></a><h2>Description
</h2><p>
18 <code class=
"function">glEnableClientState
</code> and
<a class=
"citerefentry" href=
"glDisableClientState.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDisableClientState
</span></span></a>
19 enable or disable individual client-side capabilities. By default, all
20 client-side capabilities are disabled.
22 <code class=
"function">glEnableClientState
</code> and
<a class=
"citerefentry" href=
"glDisableClientState.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDisableClientState
</span></span></a> take a
23 single argument,
<em class=
"parameter"><code>cap
</code></em>, which can assume one of the following
25 </p><div class=
"variablelist"><dl><dt><span class=
"term"><code class=
"constant">GL_COLOR_ARRAY
</code></span></dt><dd><p>
26 If enabled, the color array is enabled for writing and used during
27 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
28 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
29 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glColorPointer
</span></span></a>.
30 </p></dd><dt><span class=
"term"><code class=
"constant">GL_EDGE_FLAG_ARRAY
</code></span></dt><dd><p>
31 If enabled, the edge flag array is enabled for writing and used during
32 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
33 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
34 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glEdgeFlagPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEdgeFlagPointer
</span></span></a>.
35 </p></dd><dt><span class=
"term"><code class=
"constant">GL_FOG_COORD_ARRAY
</code></span></dt><dd><p>
36 If enabled, the fog coordinate array is enabled for writing and used during
37 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
38 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
39 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glFogCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glFogCoordPointer
</span></span></a>.
40 </p></dd><dt><span class=
"term"><code class=
"constant">GL_INDEX_ARRAY
</code></span></dt><dd><p>
41 If enabled, the index array is enabled for writing and used during
42 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
43 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
44 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glIndexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glIndexPointer
</span></span></a>.
45 </p></dd><dt><span class=
"term"><code class=
"constant">GL_NORMAL_ARRAY
</code></span></dt><dd><p>
46 If enabled, the normal array is enabled for writing and used during
47 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
48 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
49 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glNormalPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glNormalPointer
</span></span></a>.
50 </p></dd><dt><span class=
"term"><code class=
"constant">GL_SECONDARY_COLOR_ARRAY
</code></span></dt><dd><p>
51 If enabled, the secondary color array is enabled for writing and used
52 during rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
53 <a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
54 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glColorPointer
</span></span></a>.
55 </p></dd><dt><span class=
"term"><code class=
"constant">GL_TEXTURE_COORD_ARRAY
</code></span></dt><dd><p>
56 If enabled, the texture coordinate array is enabled for writing and used
57 during rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
58 <a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
59 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glTexCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glTexCoordPointer
</span></span></a>.
60 </p></dd><dt><span class=
"term"><code class=
"constant">GL_VERTEX_ARRAY
</code></span></dt><dd><p>
61 If enabled, the vertex array is enabled for writing and used during
62 rendering when
<a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
<a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
63 <a class=
"citerefentry" href=
"glDrawRangeElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawRangeElements
</span></span></a> <a class=
"citerefentry" href=
"glMultiDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawArrays
</span></span></a>, or
64 <a class=
"citerefentry" href=
"glMultiDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glMultiDrawElements
</span></span></a> is called. See
<a class=
"citerefentry" href=
"glVertexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glVertexPointer
</span></span></a>.
65 </p></dd></dl></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"notes"></a><h2>Notes
</h2><p>
66 <code class=
"function">glEnableClientState
</code> is available only if the GL version is
1.1 or greater.
68 <code class=
"constant">GL_FOG_COORD_ARRAY
</code> and
<code class=
"constant">GL_SECONDARY_COLOR_ARRAY
</code> are available only if the GL version is
1.4 or
71 For OpenGL versions
1.3 and greater, or when
<code class=
"code">ARB_multitexture
</code> is supported, enabling and disabling
72 <code class=
"constant">GL_TEXTURE_COORD_ARRAY
</code> affects the active client texture unit.
73 The active client texture unit is controlled with
74 <a class=
"citerefentry" href=
"glClientActiveTexture.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glClientActiveTexture
</span></span></a>.
75 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"errors"></a><h2>Errors
</h2><p>
76 <code class=
"constant">GL_INVALID_ENUM
</code> is generated if
<em class=
"parameter"><code>cap
</code></em> is not an accepted value.
78 <code class=
"function">glEnableClientState
</code> is not allowed between the execution of
<a class=
"citerefentry" href=
"glBegin.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glBegin
</span></span></a> and the
79 corresponding
<a class=
"citerefentry" href=
"glEnd.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEnd
</span></span></a>, but an error may or may not be generated. If
80 no error is generated, the behavior is undefined.
81 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"seealso"></a><h2>See Also
</h2><p>
82 <a class=
"citerefentry" href=
"glArrayElement.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glArrayElement
</span></span></a>,
83 <a class=
"citerefentry" href=
"glClientActiveTexture.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glClientActiveTexture
</span></span></a>,
84 <a class=
"citerefentry" href=
"glColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glColorPointer
</span></span></a>,
85 <a class=
"citerefentry" href=
"glDrawArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawArrays
</span></span></a>,
86 <a class=
"citerefentry" href=
"glDrawElements.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glDrawElements
</span></span></a>,
87 <a class=
"citerefentry" href=
"glEdgeFlagPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEdgeFlagPointer
</span></span></a>,
88 <a class=
"citerefentry" href=
"glFogCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glFogCoordPointer
</span></span></a>,
89 <a class=
"citerefentry" href=
"glEnable.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEnable
</span></span></a>,
90 <a class=
"citerefentry" href=
"glGetPointerv.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGetPointerv
</span></span></a>,
91 <a class=
"citerefentry" href=
"glIndexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glIndexPointer
</span></span></a>,
92 <a class=
"citerefentry" href=
"glInterleavedArrays.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glInterleavedArrays
</span></span></a>,
93 <a class=
"citerefentry" href=
"glNormalPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glNormalPointer
</span></span></a>,
94 <a class=
"citerefentry" href=
"glSecondaryColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glSecondaryColorPointer
</span></span></a>,
95 <a class=
"citerefentry" href=
"glTexCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glTexCoordPointer
</span></span></a>,
96 <a class=
"citerefentry" href=
"glVertexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glVertexPointer
</span></span></a>
97 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"Copyright"></a><h2>Copyright
</h2><p>
98 Copyright
<span class=
"trademark"></span>©
1991-
2006
99 Silicon Graphics, Inc. This document is licensed under the SGI
100 Free Software B License. For details, see
101 <a class=
"ulink" href=
"http://oss.sgi.com/projects/FreeB/" target=
"_top">http://oss.sgi.com/projects/FreeB/
</a>.
102 </p></div></div></body></html>