forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glIsEnabled.xhtml
95 lines (95 loc) · 11.4 KB
/
glIsEnabled.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<div class="refentry" lang="en" xml:lang="en"><a id="glIsEnabled"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glIsEnabled — test whether a capability is enabled</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table class="funcprototype-table"><tr><td><code class="funcdef">GLboolean <b class="fsfunc">glIsEnabled</b>(</code></td><td>GLenum <var class="pdparam">cap</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></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>
Specifies a symbolic constant indicating a GL capability.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
<code class="function">glIsEnabled</code>
returns <code class="constant">GL_TRUE</code> if cap is an enabled
capability and returns <code class="constant">GL_FALSE</code> otherwise.
</p><p>
The following capabilities are accepted for <em class="parameter"><code>cap</code></em>:
</p><div class="informaltable"><table><colgroup><col /><col /><col /></colgroup><thead><tr><th><code class="constant">Constant</code></th><th> </th><th><code class="constant">See function:</code></th></tr><tr><th> </th><th> </th><th> </th></tr></thead><tbody><tr><td><code class="constant">GL_ALPHA_TEST</code></td><td> </td><td>
<a class="citerefentry" href="glAlphaFunc"><span class="citerefentry"><span class="refentrytitle">glAlphaFunc</span></span></a>
</td></tr><tr><td><code class="constant">GL_BLEND</code></td><td> </td><td>
<a class="citerefentry" href="glBlendFunc"><span class="citerefentry"><span class="refentrytitle">glBlendFunc</span></span></a>,
<a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>
</td></tr><tr><td>
<code class="constant">GL_CLIP_PLANE<math overflow="scroll"><mi>i</mi></math>
</code>
</td><td> </td><td>
<a class="citerefentry" href="glClipPlane"><span class="citerefentry"><span class="refentrytitle">glClipPlane</span></span></a>
</td></tr><tr><td><code class="constant">GL_COLOR_ARRAY</code></td><td> </td><td>
<a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>
</td></tr><tr><td><code class="constant">GL_COLOR_LOGIC_OP</code></td><td> </td><td>
<a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>
</td></tr><tr><td><code class="constant">GL_COLOR_MATERIAL</code></td><td> </td><td>
<a class="citerefentry" href="glMaterial"><span class="citerefentry"><span class="refentrytitle">glMaterial</span></span></a>
</td></tr><tr><td><code class="constant">GL_CULL_FACE</code></td><td> </td><td>
<a class="citerefentry" href="glCullFace"><span class="citerefentry"><span class="refentrytitle">glCullFace</span></span></a>
</td></tr><tr><td><code class="constant">GL_DEPTH_TEST</code></td><td> </td><td>
<a class="citerefentry" href="glDepthFunc"><span class="citerefentry"><span class="refentrytitle">glDepthFunc</span></span></a>,
<a class="citerefentry" href="glDepthRange"><span class="citerefentry"><span class="refentrytitle">glDepthRange</span></span></a>
</td></tr><tr><td><code class="constant">GL_DITHER</code></td><td> </td><td>
<a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
</td></tr><tr><td><code class="constant">GL_FOG</code></td><td> </td><td>
<a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>
</td></tr><tr><td>
<code class="constant">GL_LIGHT<math overflow="scroll"><mi>i</mi></math>
</code>
</td><td> </td><td>
<a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a>,
<a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>
</td></tr><tr><td><code class="constant">GL_LIGHTING</code></td><td> </td><td>
<a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a>,
<a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>,
<a class="citerefentry" href="glMaterial"><span class="citerefentry"><span class="refentrytitle">glMaterial</span></span></a>
</td></tr><tr><td><code class="constant">GL_LINE_SMOOTH</code></td><td> </td><td>
<a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>
</td></tr><tr><td><code class="constant">GL_MULTISAMPLE</code></td><td> </td><td>
<a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
</td></tr><tr><td><code class="constant">GL_NORMAL_ARRAY</code></td><td> </td><td>
<a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>
</td></tr><tr><td><code class="constant">GL_NORMALIZE</code></td><td> </td><td>
<a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>
</td></tr><tr><td><code class="constant">GL_POINT_SIZE_ARRAY_OES</code></td><td> </td><td>
<a class="citerefentry" href="glEnableClientState"><span class="citerefentry"><span class="refentrytitle">glEnableClientState</span></span></a>
</td></tr><tr><td><code class="constant">GL_POINT_SMOOTH</code></td><td> </td><td>
<a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>
</td></tr><tr><td><code class="constant">GL_POINT_SPRITE_OES</code></td><td> </td><td>
<a class="citerefentry" href="glTexEnv"><span class="citerefentry"><span class="refentrytitle">glTexEnv</span></span></a>
</td></tr><tr><td><code class="constant">GL_POLYGON_OFFSET_FILL</code></td><td> </td><td>
<a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>
</td></tr><tr><td><code class="constant">GL_RESCALE_NORMAL</code></td><td> </td><td>
<a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>
</td></tr><tr><td><code class="constant">GL_SAMPLE_ALPHA_TO_COVERAGE</code></td><td> </td><td>
<a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
</td></tr><tr><td><code class="constant">GL_SAMPLE_ALPHA_TO_ONE</code></td><td> </td><td>
<a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
</td></tr><tr><td><code class="constant">GL_SAMPLE_COVERAGE</code></td><td> </td><td>
<a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
</td></tr><tr><td><code class="constant">GL_SCISSOR_TEST</code></td><td> </td><td>
<a class="citerefentry" href="glScissor"><span class="citerefentry"><span class="refentrytitle">glScissor</span></span></a>
</td></tr><tr><td><code class="constant">GL_STENCIL_TEST</code></td><td> </td><td>
<a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a>,
<a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>
</td></tr><tr><td><code class="constant">GL_TEXTURE_2D</code></td><td> </td><td>
<a class="citerefentry" href="glTexImage2D"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>
</td></tr><tr><td><code class="constant">GL_TEXTURE_COORD_ARRAY</code></td><td> </td><td>
<a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>
</td></tr><tr><td><code class="constant">GL_VERTEX_ARRAY</code></td><td> </td><td>
<a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>
</td></tr></tbody></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>
If an error is generated,
<code class="function">glIsEnabled</code> returns 0.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
<code class="constant">GL_INVALID_ENUM</code> is generated if
<em class="parameter"><code>cap</code></em> is not an accepted value.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
<a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>,
<a class="citerefentry" href="glEnableClientState"><span class="citerefentry"><span class="refentrytitle">glEnableClientState</span></span></a>
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="copyright"></a><h2>Copyright</h2><p>
Copyright © 2003-2004
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
<a class="ulink" href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
</p></div></div>