<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glEnableClientState</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GL.xml" title="GL"/><link rel="previous" href="glEnable.3G.xml" title="glEnable"/><link rel="next" href="glEvalCoord.3G.xml" title="glEvalCoord"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glEnableClientState</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glEnable.3G.xml">Prev</a> </td><th width="60%" align="center">GL</th><td width="20%" align="right"> <a accesskey="n" href="glEvalCoord.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glEnableClientState.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glEnableClientState.3G-name"/><h2>Name</h2><p>glEnableClientState, glDisableClientState &#8212; enable or disable client-side capability</p></div><div class="refsynopsisdiv"><a name="glEnableClientState.3G-c_spec-enable"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glEnableClientState</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLenum <i><tt>array</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glEnableClientState.3G-python_spec-enable"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glEnableClientState</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>array</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-parameters-enable"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>array</tt></i></span></dt><dd>
						Specifies the capability to enable. Symbolic constants <tt>GL_COLOR_ARRAY</tt>,
						<tt>GL_EDGE_FLAG_ARRAY</tt>, <tt>GL_INDEX_ARRAY</tt>,
						<tt>GL_NORMAL_ARRAY</tt>, <tt>GL_TEXTURE_COORD_ARRAY</tt>, and
						<tt>GL_VERTEX_ARRAY</tt> are accepted.
					</dd></dl></div></div><div class="refsynopsisdiv"><a name="glEnableClientState.3G-c_spec-disable"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glDisableClientState</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLenum <i><tt>array</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glEnableClientState.3G-python_spec-disable"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glDisableClientState</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>array</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-parameters-disable"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>array</tt></i></span></dt><dd>
						Specifies the capability to disable.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-description"/><h2>Description</h2><p>
			<tt>glEnableClientState</tt> and <tt>glDisableClientState</tt> enable or disable individual
			client-side capabilities. By default, all client-side capabilities are disabled. Both
			<tt>glEnableClientState</tt> and <tt>glDisableClientState</tt> take a single argument,
			<i><tt>array</tt></i>, which can assume one of the following values:
		</p><div class="variablelist"><dl><dt><span class="term"><tt>GL_COLOR_ARRAY</tt></span></dt><dd>
						If enabled, the color array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glColorPointer.3G.xml"><tt>glColorPointer</tt></a>.
					</dd><dt><span class="term"><tt>GL_EDGE_FLAG_ARRAY</tt></span></dt><dd>
						If enabled, the edge flag array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glEdgeFlagPointer.3G.xml"><tt>glEdgeFlagPointer</tt></a>.
					</dd><dt><span class="term"><tt>GL_INDEX_ARRAY</tt></span></dt><dd>
						If enabled, the index array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glIndexPointer.3G.xml"><tt>glIndexPointer</tt></a>.
					</dd><dt><span class="term"><tt>GL_NORMAL_ARRAY</tt></span></dt><dd>
						If enabled, the normal array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glNormalPointer.3G.xml"><tt>glNormalPointer</tt></a>.
					</dd><dt><span class="term"><tt>GL_TEXTURE_COORD_ARRAY</tt></span></dt><dd>
						If enabled, the texture coordinate array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glTexCoordPointer.3G.xml"><tt>glTexCoordPointer</tt></a>.
					</dd><dt><span class="term"><tt>GL_VERTEX_ARRAY</tt></span></dt><dd>
						If enabled, the vertex array is enabled for writing and used during rendering when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>,
						<tt>glDrawElement</tt>, or <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> is called. See <a href="glVertexPointer.3G.xml"><tt>glVertexPointer</tt></a>.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-notes"/><h2>Notes</h2><p>
			<tt>glEnableClientState</tt> is available only if the GL version is 1.1 or greater.
		</p><p>
			If <tt>GL_ARB_multitexture</tt> is supported, enabling and disabling
			<tt>GL_TEXTURE_COORD_ARRAY</tt> affects the active client texture unit. The active client texture unit is
			controlled with <a href="glClientActiveTextureARB.3G.xml"><tt>glClientActiveTextureARB</tt></a>.
		</p></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-errors"/><h2>Errors</h2><p>
			<tt>GL_INVALID_ENUM</tt> is generated if <i><tt>array</tt></i> is not an accepted value.
		</p><p>
			<tt>glEnableClientState</tt> is not allowed between the execution of <a href="glBegin.3G.xml"><tt>glBegin</tt></a> and the corresponding <a href="glBegin.3G.xml"><tt>glEnd</tt></a>, but an
			error may or may not be generated. If no error is generated, the behavior is undefined.
		</p></div><div class="refsect1" lang="en"><a name="glEnableClientState.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glArrayElement.3G.xml">glArrayElement</a>, <a href="glClientActiveTextureARB.3G.xml">glClientActiveTextureARB</a>, <a href="glColorPointer.3G.xml">glColorPointer</a>, <a href="glDrawArrays.3G.xml">glDrawArrays</a>, <a href="glDrawElements.3G.xml">glDrawElements</a>, <a href="glEdgeFlagPointer.3G.xml">glEdgeFlagPointer</a>, <a href="glEnable.3G.xml">glEnable</a>, <a href="glGetPointerv.3G.xml">glGetPointerv</a>, <a href="glIndexPointer.3G.xml">glIndexPointer</a>, <a href="glInterleavedArrays.3G.xml">glInterleavedArrays</a>, <a href="glNormalPointer.3G.xml">glNormalPointer</a>, <a href="glTexCoordPointer.3G.xml">glTexCoordPointer</a>, <a href="glVertexPointer.3G.xml">glVertexPointer</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glEnable.3G.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GL.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="glEvalCoord.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glEnable </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glEvalCoord</td></tr></table></div></body></html>