<?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>glIsEnabled</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="glInterleavedArrays.3G.xml" title="glInterleavedArrays"/><link rel="next" href="glIsList.3G.xml" title="glIsList"/></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">glIsEnabled</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glInterleavedArrays.3G.xml">Prev</a> </td><th width="60%" align="center">GL</th><td width="20%" align="right"> <a accesskey="n" href="glIsList.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glIsEnabled.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glIsEnabled.3G-name"/><h2>Name</h2><p>glIsEnabled &#8212; test whether a capability is enabled</p></div><div class="refsynopsisdiv"><a name="glIsEnabled.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>GLboolean <tt>glIsEnabled</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLenum <i><tt>cap</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glIsEnabled.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glIsEnabled</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>cap</tt></i>) &#8594; <i><tt>boolean</tt></i></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glIsEnabled.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>cap</tt></i></span></dt><dd>
						Specifies a symbolic constant indicating a GL capability.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glIsEnabled.3G-description"/><h2>Description</h2><p>
			<tt>glIsEnabled</tt> returns <tt>GL_TRUE</tt> if <i><tt>cap</tt></i> is an enabled
			capability and returns <tt>GL_FALSE</tt> otherwise. Initially all capabilities except
			<tt>GL_DITHER</tt> are disabled; <tt>GL_DITHER</tt> is initially enabled.
		</p><p>
			The following capabilities are accepted for <i><tt>cap</tt></i>:
		</p><div class="informaltable"><table border="1"><colgroup><col/><col/></colgroup><tbody><tr><td><span class="bold"><b>Constant</b></span></td><td><span class="bold"><b>See</b></span></td></tr><tr><td><tt>GL_ALPHA_TEST</tt></td><td><a href="glAlphaFunc.3G.xml">glAlphaFunc</a></td></tr><tr><td><tt>GL_AUTO_NORMAL</tt></td><td><a href="glEvalCoord.3G.xml">glEvalCoord</a></td></tr><tr><td><tt>GL_BLEND</tt></td><td><span class="simplelist"><a href="glBlendFunc.3G.xml">glBlendFunc</a>, <a href="glLogicOp.3G.xml">glLogicOp</a></span></td></tr><tr><td><tt>GL_CLIP_PLANE</tt><i><tt>i</tt></i></td><td><a href="glClipPlane.3G.xml">glClipPlane</a></td></tr><tr><td><tt>GL_COLOR_ARRAY</tt></td><td><a href="glColorPointer.3G.xml">glColorPointer</a></td></tr><tr><td><tt>GL_COLOR_LOGIC_OP</tt></td><td><a href="glLogicOp.3G.xml">glLogicOp</a></td></tr><tr><td><tt>GL_COLOR_MATERIAL</tt></td><td><a href="glColorMaterial.3G.xml">glColorMaterial</a></td></tr><tr><td><tt>GL_COLOR_TABLE</tt></td><td><a href="glColorTable.3G.xml">glColorTable</a></td></tr><tr><td><tt>GL_CONVOLUTION_1D</tt></td><td><a href="glConvolutionFilter1D.3G.xml">glConvolutionFilter1D</a></td></tr><tr><td><tt>GL_CONVOLUTION_2D</tt></td><td><a href="glConvolutionFilter2D.3G.xml">glConvolutionFilter2D</a></td></tr><tr><td><tt>GL_CULL_FACE</tt></td><td><a href="glCullFace.3G.xml">glCullFace</a></td></tr><tr><td><tt>GL_DEPTH_TEST</tt></td><td><span class="simplelist"><a href="glDepthFunc.3G.xml">glDepthFunc</a>, <a href="glDepthRange.3G.xml">glDepthRange</a></span></td></tr><tr><td><tt>GL_DITHER</tt></td><td><a href="glEnable.3G.xml">glEnable</a></td></tr><tr><td><tt>GL_EDGE_FLAG_ARRAY</tt></td><td><a href="glEdgeFlagPointer.3G.xml">glEdgeFlagPointer</a></td></tr><tr><td><tt>GL_FOG</tt></td><td><a href="glFog.3G.xml">glFog</a></td></tr><tr><td><tt>GL_HISTOGRAM</tt></td><td><a href="glHistogram.3G.xml">glHistogram</a></td></tr><tr><td><tt>GL_INDEX_ARRAY</tt></td><td><a href="glIndexPointer.3G.xml">glIndexPointer</a></td></tr><tr><td><tt>GL_INDEX_LOGIC_OP</tt></td><td><a href="glLogicOp.3G.xml">glLogicOp</a></td></tr><tr><td><tt>GL_LIGHT</tt><i><tt>i</tt></i></td><td><span class="simplelist"><a href="glLightModel.3G.xml">glLightModel</a>, <a href="glLight.3G.xml">glLight</a></span></td></tr><tr><td><tt>GL_LIGHTING</tt></td><td><span class="simplelist"><a href="glMaterial.3G.xml">glMaterial</a>, <a href="glLightModel.3G.xml">glLightModel</a>, <a href="glLight.3G.xml">glLight</a></span></td></tr><tr><td><tt>GL_LINE_SMOOTH</tt></td><td><a href="glLineWidth.3G.xml">glLineWidth</a></td></tr><tr><td><tt>GL_LINE_STIPPLE</tt></td><td><a href="glLineStipple.3G.xml">glLineStipple</a></td></tr><tr><td><tt>GL_MAP1_COLOR_4</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_INDEX</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_NORMAL</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_TEXTURE_COORD_1</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_TEXTURE_COORD_2</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_TEXTURE_COORD_3</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP1_TEXTURE_COORD_4</tt></td><td><a href="glMap1.3G.xml">glMap1</a></td></tr><tr><td><tt>GL_MAP2_COLOR_4</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_INDEX</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_NORMAL</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_TEXTURE_COORD_1</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_TEXTURE_COORD_2</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_TEXTURE_COORD_3</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_TEXTURE_COORD_4</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_VERTEX_3</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MAP2_VERTEX_4</tt></td><td><a href="glMap2.3G.xml">glMap2</a></td></tr><tr><td><tt>GL_MINMAX</tt></td><td><a href="glMinmax.3G.xml">glMinmax</a></td></tr><tr><td><tt>GL_NORMAL_ARRAY</tt></td><td><a href="glNormalPointer.3G.xml">glNormalPointer</a></td></tr><tr><td><tt>GL_NORMALIZE</tt></td><td><a href="glNormal.3G.xml">glNormal</a></td></tr><tr><td><tt>GL_POINT_SMOOTH</tt></td><td><a href="glPointSize.3G.xml">glPointSize</a></td></tr><tr><td><tt>GL_POLYGON_SMOOTH</tt></td><td><a href="glPolygonMode.3G.xml">glPolygonMode</a></td></tr><tr><td><tt>GL_POLYGON_OFFSET_FILL</tt></td><td><a href="glPolygonOffset.3G.xml">glPolygonOffset</a></td></tr><tr><td><tt>GL_POLYGON_OFFSET_LINE</tt></td><td><a href="glPolygonOffset.3G.xml">glPolygonOffset</a></td></tr><tr><td><tt>GL_POLYGON_OFFSET_POINT</tt></td><td><a href="glPolygonOffset.3G.xml">glPolygonOffset</a></td></tr><tr><td><tt>GL_POLYGON_STIPPLE</tt></td><td><a href="glPolygonStipple.3G.xml">glPolygonStipple</a></td></tr><tr><td><tt>GL_POST_COLOR_MATRIX_COLOR_TABLE</tt></td><td><a href="glColorTable.3G.xml">glColorTable</a></td></tr><tr><td><tt>GL_POST_CONVOLUTION_COLOR_TABLE</tt></td><td><a href="glColorTable.3G.xml">glColorTable</a></td></tr><tr><td><tt>GL_RESCALE_NORMAL</tt></td><td><a href="glNormal.3G.xml">glNormal</a></td></tr><tr><td><tt>GL_SCISSOR_TEST</tt></td><td><a href="glScissor.3G.xml">glScissor</a></td></tr><tr><td><tt>GL_SEPARABLE_2D</tt></td><td><a href="glSeparableFilter2D.3G.xml">glSeparableFilter2D</a></td></tr><tr><td><tt>GL_STENCIL_TEST</tt></td><td><span class="simplelist"><a href="glStencilFunc.3G.xml">glStencilFunc</a>, <a href="glStencilOp.3G.xml">glStencilOp</a></span></td></tr><tr><td><tt>GL_TEXTURE_1D</tt></td><td><a href="glTexImage1D.3G.xml">glTexImage1D</a></td></tr><tr><td><tt>GL_TEXTURE_2D</tt></td><td><a href="glTexImage2D.3G.xml">glTexImage2D</a></td></tr><tr><td><tt>GL_TEXTURE_3D</tt></td><td><a href="glTexImage3D.3G.xml">glTexImage3D</a></td></tr><tr><td><tt>GL_TEXTURE_COORD_ARRAY</tt></td><td><a href="glTexCoordPointer.3G.xml">glTexCoordPointer</a></td></tr><tr><td><tt>GL_TEXTURE_GEN_Q</tt></td><td><a href="glTexGen.3G.xml">glTexGen</a></td></tr><tr><td><tt>GL_TEXTURE_GEN_R</tt></td><td><a href="glTexGen.3G.xml">glTexGen</a></td></tr><tr><td><tt>GL_TEXTURE_GEN_S</tt></td><td><a href="glTexGen.3G.xml">glTexGen</a></td></tr><tr><td><tt>GL_TEXTURE_GEN_T</tt></td><td><a href="glTexGen.3G.xml">glTexGen</a></td></tr><tr><td><tt>GL_VERTEX_ARRAY</tt></td><td><a href="glVertexPointer.3G.xml">glVertexPointer</a></td></tr></tbody></table></div></div><div class="refsect1" lang="en"><a name="glIsEnabled.3G-notes"/><h2>Notes</h2><p>
			If an error is generated, <tt>glIsEnabled</tt> returns 0.
		</p><p>
			<tt>GL_COLOR_LOGIC_OP</tt>, <tt>GL_COLOR_ARRAY</tt>, <tt>GL_EDGE_FLAG_ARRAY</tt>,
			<tt>GL_INDEX_ARRAY</tt>, <tt>GL_INDEX_LOGIC_OP</tt>, <tt>GL_NORMAL_ARRAY</tt>,
			<tt>GL_POLYGON_OFFSET_FILL</tt>, <tt>GL_POLYGON_OFFSET_LINE</tt>,
			<tt>GL_POLYGON_OFFSET_POINT</tt>, <tt>GL_TEXTURE_COORD_ARRAY</tt>, and
			<tt>GL_VERTEX_ARRAY</tt> are available only if the GL version is 1.1 or greater
		</p><p>
			<tt>GL_RESCALE_NORMAL</tt>, and <tt>GL_TEXTURE_3D</tt> are available only if the GL version is
			1.2 or greater.
		</p><p>
			<tt>GL_COLOR_TABLE</tt>, <tt>GL_CONVOLUTION_1D</tt>, <tt>GL_CONVOLUTION_2D</tt>,
			<tt>GL_HISTOGRAM</tt>, <tt>GL_MINMAX</tt>,
			<tt>GL_POST_COLOR_MATRIX_COLOR_TABLE</tt>, <tt>GL_POST_CONVOLUTION_COLOR_TABLE</tt>, and
			<tt>GL_SEPARABLE_2D</tt> are available only if <tt>GL_ARB_imaging</tt> is returned when
			<tt>glGet</tt> is called with <tt>GL_EXTENSIONS</tt>.
		</p><p>
			When the <tt>GL_ARB_multitexture</tt> extension is supported, the following parameters return the
			associated value for the active texture unit. <tt>GL_TEXTURE_1D</tt>,
			<tt>GL_TEXTURE_BINDING_1D</tt>, <tt>GL_TEXTURE_2D</tt>,
			<tt>GL_TEXTURE_BINDING_2D</tt>, <tt>GL_TEXTURE_3D</tt>,
			<tt>GL_TEXTURE_BINDING_3D</tt>, <tt>GL_TEXTURE_GEN_S</tt>,
			<tt>GL_TEXTURE_GEN_T</tt>, <tt>GL_TEXTURE_GEN_R</tt>, <tt>GL_TEXTURE_GEN_Q</tt>,
			<tt>GL_TEXTURE_MATRIX</tt>, and <tt>GL_TEXTURE_STACK_DEPTH</tt>. Likewise, the following
			parameters return the associated value for the active client texture unit: <tt>GL_TEXTURE_COORD_ARRAY</tt>,
			<tt>GL_TEXTURE_COORD_ARRAY_SIZE</tt>, <tt>GL_TEXTURE_COORD_ARRAY_STRIDE</tt>,
			<tt>GL_TEXTURE_COORD_ARRAY_TYPE</tt>.
		</p></div><div class="refsect1" lang="en"><a name="glIsEnabled.3G-errors"/><h2>Errors</h2><p>
			<tt>GL_INVALID_ENUM</tt> is generated if <i><tt>cap</tt></i> is not an accepted value.
		</p><p>
			<tt>GL_INVALID_OPERATION</tt> is generated if <tt>glIsEnabled</tt> is executed between the
			execution of <a href="glBegin.3G.xml"><tt>glBegin</tt></a> and the corresponding execution of <a href="glBegin.3G.xml"><tt>glEnd</tt></a>.
		</p></div><div class="refsect1" lang="en"><a name="glIsEnabled.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glEnable.3G.xml">glEnable</a>, <a href="glEnableClientState.3G.xml">glEnableClientState</a>, <a href="glGet.3G.xml">glGet</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="glInterleavedArrays.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="glIsList.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glInterleavedArrays </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glIsList</td></tr></table></div></body></html>
