Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> | |
4 | <refentry id="glIsEnabled"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>1991-2006</year> | |
9 | <holder>Silicon Graphics, Inc.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glIsEnabled</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glIsEnabled</refname> | |
17 | <refpurpose>test whether a capability is enabled</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>GLboolean <function>glIsEnabled</function></funcdef> | |
23 | <paramdef>GLenum <parameter>cap</parameter></paramdef> | |
24 | </funcprototype> | |
25 | </funcsynopsis> | |
26 | </refsynopsisdiv> | |
27 | <refsect1 id="parameters"><title>Parameters</title> | |
28 | <variablelist> | |
29 | <varlistentry> | |
30 | <term><parameter>cap</parameter></term> | |
31 | <listitem> | |
32 | <para> | |
33 | Specifies a symbolic constant indicating a GL capability. | |
34 | </para> | |
35 | </listitem> | |
36 | </varlistentry> | |
37 | </variablelist> | |
38 | </refsect1> | |
39 | <refsect1 id="description"><title>Description</title> | |
40 | <para> | |
41 | <function>glIsEnabled</function> returns <constant>GL_TRUE</constant> if <parameter>cap</parameter> is an enabled capability | |
42 | and returns <constant>GL_FALSE</constant> otherwise. | |
43 | Initially all capabilities except <constant>GL_DITHER</constant> are disabled; | |
44 | <constant>GL_DITHER</constant> is initially enabled. | |
45 | </para> | |
46 | <para> | |
47 | The following capabilities are accepted for <parameter>cap</parameter>: | |
48 | </para> | |
49 | <para> | |
50 | </para> | |
51 | <informaltable frame="topbot"> | |
52 | <tgroup cols="2" align="left"> | |
53 | <colspec/> | |
54 | <colspec/> | |
55 | <thead> | |
56 | <row> | |
57 | <entry rowsep="1" align="left"><emphasis role="bold"> | |
58 | Constant | |
59 | </emphasis></entry> | |
60 | <entry rowsep="1" align="left"><emphasis role="bold"> | |
61 | See | |
62 | </emphasis></entry> | |
63 | </row> | |
64 | </thead> | |
65 | <tbody> | |
66 | <row> | |
67 | <entry align="left"> | |
68 | <constant>GL_ALPHA_TEST</constant> | |
69 | </entry> | |
70 | <entry align="left"> | |
71 | <citerefentry><refentrytitle>glAlphaFunc</refentrytitle></citerefentry> | |
72 | </entry> | |
73 | </row> | |
74 | <row> | |
75 | <entry align="left"> | |
76 | <constant>GL_AUTO_NORMAL</constant> | |
77 | </entry> | |
78 | <entry align="left"> | |
79 | <citerefentry><refentrytitle>glEvalCoord</refentrytitle></citerefentry> | |
80 | </entry> | |
81 | </row> | |
82 | <row> | |
83 | <entry align="left"> | |
84 | <constant>GL_BLEND</constant> | |
85 | </entry> | |
86 | <entry align="left"> | |
87 | <citerefentry><refentrytitle>glBlendFunc</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glLogicOp</refentrytitle></citerefentry> | |
88 | </entry> | |
89 | </row> | |
90 | <row> | |
91 | <entry align="left"> | |
92 | <constant>GL_CLIP_PLANE</constant><emphasis>i</emphasis> | |
93 | </entry> | |
94 | <entry align="left"> | |
95 | <citerefentry><refentrytitle>glClipPlane</refentrytitle></citerefentry> | |
96 | </entry> | |
97 | </row> | |
98 | <row> | |
99 | <entry align="left"> | |
100 | <constant>GL_COLOR_ARRAY</constant> | |
101 | </entry> | |
102 | <entry align="left"> | |
103 | <citerefentry><refentrytitle>glColorPointer</refentrytitle></citerefentry> | |
104 | </entry> | |
105 | </row> | |
106 | <row> | |
107 | <entry align="left"> | |
108 | <constant>GL_COLOR_LOGIC_OP</constant> | |
109 | </entry> | |
110 | <entry align="left"> | |
111 | <citerefentry><refentrytitle>glLogicOp</refentrytitle></citerefentry> | |
112 | </entry> | |
113 | </row> | |
114 | <row> | |
115 | <entry align="left"> | |
116 | <constant>GL_COLOR_MATERIAL</constant> | |
117 | </entry> | |
118 | <entry align="left"> | |
119 | <citerefentry><refentrytitle>glColorMaterial</refentrytitle></citerefentry> | |
120 | </entry> | |
121 | </row> | |
122 | <row> | |
123 | <entry align="left"> | |
124 | <constant>GL_COLOR_SUM</constant> | |
125 | </entry> | |
126 | <entry align="left"> | |
127 | <citerefentry><refentrytitle>glSecondaryColor</refentrytitle></citerefentry> | |
128 | </entry> | |
129 | </row> | |
130 | <row> | |
131 | <entry align="left"> | |
132 | <constant>GL_COLOR_TABLE</constant> | |
133 | </entry> | |
134 | <entry align="left"> | |
135 | <citerefentry><refentrytitle>glColorTable</refentrytitle></citerefentry> | |
136 | </entry> | |
137 | </row> | |
138 | <row> | |
139 | <entry align="left"> | |
140 | <constant>GL_CONVOLUTION_1D</constant> | |
141 | </entry> | |
142 | <entry align="left"> | |
143 | <citerefentry><refentrytitle>glConvolutionFilter1D</refentrytitle></citerefentry> | |
144 | </entry> | |
145 | </row> | |
146 | <row> | |
147 | <entry align="left"> | |
148 | <constant>GL_CONVOLUTION_2D</constant> | |
149 | </entry> | |
150 | <entry align="left"> | |
151 | <citerefentry><refentrytitle>glConvolutionFilter2D</refentrytitle></citerefentry> | |
152 | </entry> | |
153 | </row> | |
154 | <row> | |
155 | <entry align="left"> | |
156 | <constant>GL_CULL_FACE</constant> | |
157 | </entry> | |
158 | <entry align="left"> | |
159 | <citerefentry><refentrytitle>glCullFace</refentrytitle></citerefentry> | |
160 | </entry> | |
161 | </row> | |
162 | <row> | |
163 | <entry align="left"> | |
164 | <constant>GL_DEPTH_TEST</constant> | |
165 | </entry> | |
166 | <entry align="left"> | |
167 | <citerefentry><refentrytitle>glDepthFunc</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glDepthRange</refentrytitle></citerefentry> | |
168 | </entry> | |
169 | </row> | |
170 | <row> | |
171 | <entry align="left"> | |
172 | <constant>GL_DITHER</constant> | |
173 | </entry> | |
174 | <entry align="left"> | |
175 | <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry> | |
176 | </entry> | |
177 | </row> | |
178 | <row> | |
179 | <entry align="left"> | |
180 | <constant>GL_EDGE_FLAG_ARRAY</constant> | |
181 | </entry> | |
182 | <entry align="left"> | |
183 | <citerefentry><refentrytitle>glEdgeFlagPointer</refentrytitle></citerefentry> | |
184 | </entry> | |
185 | </row> | |
186 | <row> | |
187 | <entry align="left"> | |
188 | <constant>GL_FOG</constant> | |
189 | </entry> | |
190 | <entry align="left"> | |
191 | <citerefentry><refentrytitle>glFog</refentrytitle></citerefentry> | |
192 | </entry> | |
193 | </row> | |
194 | <row> | |
195 | <entry align="left"> | |
196 | <constant>GL_FOG_COORD_ARRAY</constant> | |
197 | </entry> | |
198 | <entry align="left"> | |
199 | <citerefentry><refentrytitle>glFogCoordPointer</refentrytitle></citerefentry> | |
200 | </entry> | |
201 | </row> | |
202 | <row> | |
203 | <entry align="left"> | |
204 | <constant>GL_HISTOGRAM</constant> | |
205 | </entry> | |
206 | <entry align="left"> | |
207 | <citerefentry><refentrytitle>glHistogram</refentrytitle></citerefentry> | |
208 | </entry> | |
209 | </row> | |
210 | <row> | |
211 | <entry align="left"> | |
212 | <constant>GL_INDEX_ARRAY</constant> | |
213 | </entry> | |
214 | <entry align="left"> | |
215 | <citerefentry><refentrytitle>glIndexPointer</refentrytitle></citerefentry> | |
216 | </entry> | |
217 | </row> | |
218 | <row> | |
219 | <entry align="left"> | |
220 | <constant>GL_INDEX_LOGIC_OP</constant> | |
221 | </entry> | |
222 | <entry align="left"> | |
223 | <citerefentry><refentrytitle>glLogicOp</refentrytitle></citerefentry> | |
224 | </entry> | |
225 | </row> | |
226 | <row> | |
227 | <entry align="left"> | |
228 | <constant>GL_LIGHT</constant><emphasis>i</emphasis> | |
229 | </entry> | |
230 | <entry align="left"> | |
231 | <citerefentry><refentrytitle>glLightModel</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glLight</refentrytitle></citerefentry> | |
232 | </entry> | |
233 | </row> | |
234 | <row> | |
235 | <entry align="left"> | |
236 | <constant>GL_LIGHTING</constant> | |
237 | </entry> | |
238 | <entry align="left"> | |
239 | <citerefentry><refentrytitle>glMaterial</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glLightModel</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glLight</refentrytitle></citerefentry> | |
240 | </entry> | |
241 | </row> | |
242 | <row> | |
243 | <entry align="left"> | |
244 | <constant>GL_LINE_SMOOTH</constant> | |
245 | </entry> | |
246 | <entry align="left"> | |
247 | <citerefentry><refentrytitle>glLineWidth</refentrytitle></citerefentry> | |
248 | </entry> | |
249 | </row> | |
250 | <row> | |
251 | <entry align="left"> | |
252 | <constant>GL_LINE_STIPPLE</constant> | |
253 | </entry> | |
254 | <entry align="left"> | |
255 | <citerefentry><refentrytitle>glLineStipple</refentrytitle></citerefentry> | |
256 | </entry> | |
257 | </row> | |
258 | <row> | |
259 | <entry align="left"> | |
260 | <constant>GL_MAP1_COLOR_4</constant> | |
261 | </entry> | |
262 | <entry align="left"> | |
263 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
264 | </entry> | |
265 | </row> | |
266 | <row> | |
267 | <entry align="left"> | |
268 | <constant>GL_MAP1_INDEX</constant> | |
269 | </entry> | |
270 | <entry align="left"> | |
271 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
272 | </entry> | |
273 | </row> | |
274 | <row> | |
275 | <entry align="left"> | |
276 | <constant>GL_MAP1_NORMAL</constant> | |
277 | </entry> | |
278 | <entry align="left"> | |
279 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
280 | </entry> | |
281 | </row> | |
282 | <row> | |
283 | <entry align="left"> | |
284 | <constant>GL_MAP1_TEXTURE_COORD_1</constant> | |
285 | </entry> | |
286 | <entry align="left"> | |
287 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
288 | </entry> | |
289 | </row> | |
290 | <row> | |
291 | <entry align="left"> | |
292 | <constant>GL_MAP1_TEXTURE_COORD_2</constant> | |
293 | </entry> | |
294 | <entry align="left"> | |
295 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
296 | </entry> | |
297 | </row> | |
298 | <row> | |
299 | <entry align="left"> | |
300 | <constant>GL_MAP1_TEXTURE_COORD_3</constant> | |
301 | </entry> | |
302 | <entry align="left"> | |
303 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
304 | </entry> | |
305 | </row> | |
306 | <row> | |
307 | <entry align="left"> | |
308 | <constant>GL_MAP1_TEXTURE_COORD_4</constant> | |
309 | </entry> | |
310 | <entry align="left"> | |
311 | <citerefentry><refentrytitle>glMap1</refentrytitle></citerefentry> | |
312 | </entry> | |
313 | </row> | |
314 | <row> | |
315 | <entry align="left"> | |
316 | <constant>GL_MAP2_COLOR_4</constant> | |
317 | </entry> | |
318 | <entry align="left"> | |
319 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
320 | </entry> | |
321 | </row> | |
322 | <row> | |
323 | <entry align="left"> | |
324 | <constant>GL_MAP2_INDEX</constant> | |
325 | </entry> | |
326 | <entry align="left"> | |
327 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
328 | </entry> | |
329 | </row> | |
330 | <row> | |
331 | <entry align="left"> | |
332 | <constant>GL_MAP2_NORMAL</constant> | |
333 | </entry> | |
334 | <entry align="left"> | |
335 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
336 | </entry> | |
337 | </row> | |
338 | <row> | |
339 | <entry align="left"> | |
340 | <constant>GL_MAP2_TEXTURE_COORD_1</constant> | |
341 | </entry> | |
342 | <entry align="left"> | |
343 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
344 | </entry> | |
345 | </row> | |
346 | <row> | |
347 | <entry align="left"> | |
348 | <constant>GL_MAP2_TEXTURE_COORD_2</constant> | |
349 | </entry> | |
350 | <entry align="left"> | |
351 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
352 | </entry> | |
353 | </row> | |
354 | <row> | |
355 | <entry align="left"> | |
356 | <constant>GL_MAP2_TEXTURE_COORD_3</constant> | |
357 | </entry> | |
358 | <entry align="left"> | |
359 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
360 | </entry> | |
361 | </row> | |
362 | <row> | |
363 | <entry align="left"> | |
364 | <constant>GL_MAP2_TEXTURE_COORD_4</constant> | |
365 | </entry> | |
366 | <entry align="left"> | |
367 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
368 | </entry> | |
369 | </row> | |
370 | <row> | |
371 | <entry align="left"> | |
372 | <constant>GL_MAP2_VERTEX_3</constant> | |
373 | </entry> | |
374 | <entry align="left"> | |
375 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
376 | </entry> | |
377 | </row> | |
378 | <row> | |
379 | <entry align="left"> | |
380 | <constant>GL_MAP2_VERTEX_4</constant> | |
381 | </entry> | |
382 | <entry align="left"> | |
383 | <citerefentry><refentrytitle>glMap2</refentrytitle></citerefentry> | |
384 | </entry> | |
385 | </row> | |
386 | <row> | |
387 | <entry align="left"> | |
388 | <constant>GL_MINMAX</constant> | |
389 | </entry> | |
390 | <entry align="left"> | |
391 | <citerefentry><refentrytitle>glMinmax</refentrytitle></citerefentry> | |
392 | </entry> | |
393 | </row> | |
394 | <row> | |
395 | <entry align="left"> | |
396 | <constant>GL_MULTISAMPLE</constant> | |
397 | </entry> | |
398 | <entry align="left"> | |
399 | <citerefentry><refentrytitle>glSampleCoverage</refentrytitle></citerefentry> | |
400 | </entry> | |
401 | </row> | |
402 | <row> | |
403 | <entry align="left"> | |
404 | <constant>GL_NORMAL_ARRAY</constant> | |
405 | </entry> | |
406 | <entry align="left"> | |
407 | <citerefentry><refentrytitle>glNormalPointer</refentrytitle></citerefentry> | |
408 | </entry> | |
409 | </row> | |
410 | <row> | |
411 | <entry align="left"> | |
412 | <constant>GL_NORMALIZE</constant> | |
413 | </entry> | |
414 | <entry align="left"> | |
415 | <citerefentry><refentrytitle>glNormal</refentrytitle></citerefentry> | |
416 | </entry> | |
417 | </row> | |
418 | <row> | |
419 | <entry align="left"> | |
420 | <constant>GL_POINT_SMOOTH</constant> | |
421 | </entry> | |
422 | <entry align="left"> | |
423 | <citerefentry><refentrytitle>glPointSize</refentrytitle></citerefentry> | |
424 | </entry> | |
425 | </row> | |
426 | <row> | |
427 | <entry align="left"> | |
428 | <constant>GL_POINT_SPRITE</constant> | |
429 | </entry> | |
430 | <entry align="left"> | |
431 | <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry> | |
432 | </entry> | |
433 | </row> | |
434 | <row> | |
435 | <entry align="left"> | |
436 | <constant>GL_POLYGON_SMOOTH</constant> | |
437 | </entry> | |
438 | <entry align="left"> | |
439 | <citerefentry><refentrytitle>glPolygonMode</refentrytitle></citerefentry> | |
440 | </entry> | |
441 | </row> | |
442 | <row> | |
443 | <entry align="left"> | |
444 | <constant>GL_POLYGON_OFFSET_FILL</constant> | |
445 | </entry> | |
446 | <entry align="left"> | |
447 | <citerefentry><refentrytitle>glPolygonOffset</refentrytitle></citerefentry> | |
448 | </entry> | |
449 | </row> | |
450 | <row> | |
451 | <entry align="left"> | |
452 | <constant>GL_POLYGON_OFFSET_LINE</constant> | |
453 | </entry> | |
454 | <entry align="left"> | |
455 | <citerefentry><refentrytitle>glPolygonOffset</refentrytitle></citerefentry> | |
456 | </entry> | |
457 | </row> | |
458 | <row> | |
459 | <entry align="left"> | |
460 | <constant>GL_POLYGON_OFFSET_POINT</constant> | |
461 | </entry> | |
462 | <entry align="left"> | |
463 | <citerefentry><refentrytitle>glPolygonOffset</refentrytitle></citerefentry> | |
464 | </entry> | |
465 | </row> | |
466 | <row> | |
467 | <entry align="left"> | |
468 | <constant>GL_POLYGON_STIPPLE</constant> | |
469 | </entry> | |
470 | <entry align="left"> | |
471 | <citerefentry><refentrytitle>glPolygonStipple</refentrytitle></citerefentry> | |
472 | </entry> | |
473 | </row> | |
474 | <row> | |
475 | <entry align="left"> | |
476 | <constant>GL_POST_COLOR_MATRIX_COLOR_TABLE</constant> | |
477 | </entry> | |
478 | <entry align="left"> | |
479 | <citerefentry><refentrytitle>glColorTable</refentrytitle></citerefentry> | |
480 | </entry> | |
481 | </row> | |
482 | <row> | |
483 | <entry align="left"> | |
484 | <constant>GL_POST_CONVOLUTION_COLOR_TABLE</constant> | |
485 | </entry> | |
486 | <entry align="left"> | |
487 | <citerefentry><refentrytitle>glColorTable</refentrytitle></citerefentry> | |
488 | </entry> | |
489 | </row> | |
490 | <row> | |
491 | <entry align="left"> | |
492 | <constant>GL_RESCALE_NORMAL</constant> | |
493 | </entry> | |
494 | <entry align="left"> | |
495 | <citerefentry><refentrytitle>glNormal</refentrytitle></citerefentry> | |
496 | </entry> | |
497 | </row> | |
498 | <row> | |
499 | <entry align="left"> | |
500 | <constant>GL_SAMPLE_ALPHA_TO_COVERAGE</constant> | |
501 | </entry> | |
502 | <entry align="left"> | |
503 | <citerefentry><refentrytitle>glSampleCoverage</refentrytitle></citerefentry> | |
504 | </entry> | |
505 | </row> | |
506 | <row> | |
507 | <entry align="left"> | |
508 | <constant>GL_SAMPLE_ALPHA_TO_ONE</constant> | |
509 | </entry> | |
510 | <entry align="left"> | |
511 | <citerefentry><refentrytitle>glSampleCoverage</refentrytitle></citerefentry> | |
512 | </entry> | |
513 | </row> | |
514 | <row> | |
515 | <entry align="left"> | |
516 | <constant>GL_SAMPLE_COVERAGE</constant> | |
517 | </entry> | |
518 | <entry align="left"> | |
519 | <citerefentry><refentrytitle>glSampleCoverage</refentrytitle></citerefentry> | |
520 | </entry> | |
521 | </row> | |
522 | <row> | |
523 | <entry align="left"> | |
524 | <constant>GL_SCISSOR_TEST</constant> | |
525 | </entry> | |
526 | <entry align="left"> | |
527 | <citerefentry><refentrytitle>glScissor</refentrytitle></citerefentry> | |
528 | </entry> | |
529 | </row> | |
530 | <row> | |
531 | <entry align="left"> | |
532 | <constant>GL_SECONDARY_COLOR_ARRAY</constant> | |
533 | </entry> | |
534 | <entry align="left"> | |
535 | <citerefentry><refentrytitle>glSecondaryColorPointer</refentrytitle></citerefentry> | |
536 | </entry> | |
537 | </row> | |
538 | <row> | |
539 | <entry align="left"> | |
540 | <constant>GL_SEPARABLE_2D</constant> | |
541 | </entry> | |
542 | <entry align="left"> | |
543 | <citerefentry><refentrytitle>glSeparableFilter2D</refentrytitle></citerefentry> | |
544 | </entry> | |
545 | </row> | |
546 | <row> | |
547 | <entry align="left"> | |
548 | <constant>GL_STENCIL_TEST</constant> | |
549 | </entry> | |
550 | <entry align="left"> | |
551 | <citerefentry><refentrytitle>glStencilFunc</refentrytitle></citerefentry>, <citerefentry><refentrytitle>glStencilOp</refentrytitle></citerefentry> | |
552 | </entry> | |
553 | </row> | |
554 | <row> | |
555 | <entry align="left"> | |
556 | <constant>GL_TEXTURE_1D</constant> | |
557 | </entry> | |
558 | <entry align="left"> | |
559 | <citerefentry><refentrytitle>glTexImage1D</refentrytitle></citerefentry> | |
560 | </entry> | |
561 | </row> | |
562 | <row> | |
563 | <entry align="left"> | |
564 | <constant>GL_TEXTURE_2D</constant> | |
565 | </entry> | |
566 | <entry align="left"> | |
567 | <citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry> | |
568 | </entry> | |
569 | </row> | |
570 | <row> | |
571 | <entry align="left"> | |
572 | <constant>GL_TEXTURE_3D</constant> | |
573 | </entry> | |
574 | <entry align="left"> | |
575 | <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry> | |
576 | </entry> | |
577 | </row> | |
578 | <row> | |
579 | <entry align="left"> | |
580 | <constant>GL_TEXTURE_COORD_ARRAY</constant> | |
581 | </entry> | |
582 | <entry align="left"> | |
583 | <citerefentry><refentrytitle>glTexCoordPointer</refentrytitle></citerefentry> | |
584 | </entry> | |
585 | </row> | |
586 | <row> | |
587 | <entry align="left"> | |
588 | <constant>GL_TEXTURE_CUBE_MAP</constant> | |
589 | </entry> | |
590 | <entry align="left"> | |
591 | <citerefentry><refentrytitle>glTexImage2D</refentrytitle></citerefentry> | |
592 | </entry> | |
593 | </row> | |
594 | <row> | |
595 | <entry align="left"> | |
596 | <constant>GL_TEXTURE_GEN_Q</constant> | |
597 | </entry> | |
598 | <entry align="left"> | |
599 | <citerefentry><refentrytitle>glTexGen</refentrytitle></citerefentry> | |
600 | </entry> | |
601 | </row> | |
602 | <row> | |
603 | <entry align="left"> | |
604 | <constant>GL_TEXTURE_GEN_R</constant> | |
605 | </entry> | |
606 | <entry align="left"> | |
607 | <citerefentry><refentrytitle>glTexGen</refentrytitle></citerefentry> | |
608 | </entry> | |
609 | </row> | |
610 | <row> | |
611 | <entry align="left"> | |
612 | <constant>GL_TEXTURE_GEN_S</constant> | |
613 | </entry> | |
614 | <entry align="left"> | |
615 | <citerefentry><refentrytitle>glTexGen</refentrytitle></citerefentry> | |
616 | </entry> | |
617 | </row> | |
618 | <row> | |
619 | <entry align="left"> | |
620 | <constant>GL_TEXTURE_GEN_T</constant> | |
621 | </entry> | |
622 | <entry align="left"> | |
623 | <citerefentry><refentrytitle>glTexGen</refentrytitle></citerefentry> | |
624 | </entry> | |
625 | </row> | |
626 | <row> | |
627 | <entry align="left"> | |
628 | <constant>GL_VERTEX_ARRAY</constant> | |
629 | </entry> | |
630 | <entry align="left"> | |
631 | <citerefentry><refentrytitle>glVertexPointer</refentrytitle></citerefentry> | |
632 | </entry> | |
633 | </row> | |
634 | <row> | |
635 | <entry align="left"> | |
636 | <constant>GL_VERTEX_PROGRAM_POINT_SIZE</constant> | |
637 | </entry> | |
638 | <entry align="left"> | |
639 | <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry> | |
640 | </entry> | |
641 | </row> | |
642 | <row> | |
643 | <entry align="left"> | |
644 | <constant>GL_VERTEX_PROGRAM_TWO_SIDE</constant> | |
645 | </entry> | |
646 | <entry align="left"> | |
647 | <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry> | |
648 | </entry> | |
649 | </row> | |
650 | </tbody> | |
651 | </tgroup> | |
652 | </informaltable> | |
653 | <para> | |
654 | </para> | |
655 | </refsect1> | |
656 | <refsect1 id="notes"><title>Notes</title> | |
657 | <para> | |
658 | If an error is generated, | |
659 | <function>glIsEnabled</function> returns 0. | |
660 | </para> | |
661 | <para> | |
662 | <constant>GL_COLOR_LOGIC_OP</constant>, | |
663 | <constant>GL_COLOR_ARRAY</constant>, | |
664 | <constant>GL_EDGE_FLAG_ARRAY</constant>, | |
665 | <constant>GL_INDEX_ARRAY</constant>, | |
666 | <constant>GL_INDEX_LOGIC_OP</constant>, | |
667 | <constant>GL_NORMAL_ARRAY</constant>, | |
668 | <constant>GL_POLYGON_OFFSET_FILL</constant>, | |
669 | <constant>GL_POLYGON_OFFSET_LINE</constant>, | |
670 | <constant>GL_POLYGON_OFFSET_POINT</constant>, | |
671 | <constant>GL_TEXTURE_COORD_ARRAY</constant>, and | |
672 | <constant>GL_VERTEX_ARRAY</constant> | |
673 | are available only | |
674 | if the GL version is 1.1 or greater. | |
675 | </para> | |
676 | <para> | |
677 | <constant>GL_RESCALE_NORMAL</constant>, and <constant>GL_TEXTURE_3D</constant> are available only if the GL | |
678 | version is 1.2 or greater. | |
679 | </para> | |
680 | <para> | |
681 | <constant>GL_MULTISAMPLE</constant>, | |
682 | <constant>GL_SAMPLE_ALPHA_TO_COVERAGE</constant>, | |
683 | <constant>GL_SAMPLE_ALPHA_TO_ONE</constant>, | |
684 | <constant>GL_SAMPLE_COVERAGE</constant>, | |
685 | <constant>GL_TEXTURE_CUBE_MAP</constant> | |
686 | are available only if the GL version is 1.3 or greater. | |
687 | </para> | |
688 | <para> | |
689 | <constant>GL_FOG_COORD_ARRAY</constant> and <constant>GL_SECONDARY_COLOR_ARRAY</constant> | |
690 | are available only if the GL version is 1.4 or greater. | |
691 | </para> | |
692 | <para> | |
693 | <constant>GL_POINT_SPRITE</constant>, | |
694 | <constant>GL_VERTEX_PROGRAM_POINT_SIZE</constant>, and | |
695 | <constant>GL_VERTEX_PROGRAM_TWO_SIDE</constant> | |
696 | are available only if the GL version is 2.0 or greater. | |
697 | </para> | |
698 | <para> | |
699 | <constant>GL_COLOR_TABLE</constant>, <constant>GL_CONVOLUTION_1D</constant>, <constant>GL_CONVOLUTION_2D</constant>, | |
700 | <constant>GL_HISTOGRAM</constant>, <constant>GL_MINMAX</constant>, | |
701 | <constant>GL_POST_COLOR_MATRIX_COLOR_TABLE</constant>, | |
702 | <constant>GL_POST_CONVOLUTION_COLOR_TABLE</constant>, and | |
703 | <constant>GL_SEPARABLE_2D</constant> are available only if <code>ARB_imaging</code> is | |
704 | returned when <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> is called with <constant>GL_EXTENSIONS</constant>. | |
705 | </para> | |
706 | <para> | |
707 | For OpenGL versions 1.3 and greater, or when the <code>ARB_multitexture</code> extension is supported, the following | |
708 | parameters return the associated value for the active texture unit: | |
709 | <constant>GL_TEXTURE_1D</constant>, | |
710 | <constant>GL_TEXTURE_2D</constant>, | |
711 | <constant>GL_TEXTURE_3D</constant>, | |
712 | <constant>GL_TEXTURE_CUBE_MAP</constant>, | |
713 | <constant>GL_TEXTURE_GEN_S</constant>, | |
714 | <constant>GL_TEXTURE_GEN_T</constant>, | |
715 | <constant>GL_TEXTURE_GEN_R</constant>, | |
716 | <constant>GL_TEXTURE_GEN_Q</constant>, | |
717 | <constant>GL_TEXTURE_MATRIX</constant>, and | |
718 | <constant>GL_TEXTURE_STACK_DEPTH</constant>. | |
719 | Likewise, the following parameters return the associated value for the | |
720 | active client texture unit: | |
721 | <constant>GL_TEXTURE_COORD_ARRAY</constant>, | |
722 | <constant>GL_TEXTURE_COORD_ARRAY_SIZE</constant>, | |
723 | <constant>GL_TEXTURE_COORD_ARRAY_STRIDE</constant>, | |
724 | <constant>GL_TEXTURE_COORD_ARRAY_TYPE</constant>. | |
725 | </para> | |
726 | </refsect1> | |
727 | <refsect1 id="errors"><title>Errors</title> | |
728 | <para> | |
729 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>cap</parameter> is not an accepted value. | |
730 | </para> | |
731 | <para> | |
732 | <constant>GL_INVALID_OPERATION</constant> is generated if <function>glIsEnabled</function> | |
733 | is executed between the execution of <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry> | |
734 | and the corresponding execution of <citerefentry><refentrytitle>glEnd</refentrytitle></citerefentry>. | |
735 | </para> | |
736 | </refsect1> | |
737 | <refsect1 id="seealso"><title>See Also</title> | |
738 | <para> | |
739 | <citerefentry><refentrytitle>glEnable</refentrytitle></citerefentry>, | |
740 | <citerefentry><refentrytitle>glEnableClientState</refentrytitle></citerefentry>, | |
741 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> | |
742 | </para> | |
743 | </refsect1> | |
744 | <refsect1 id="Copyright"><title>Copyright</title> | |
745 | <para> | |
746 | Copyright <trademark class="copyright"></trademark> 1991-2006 | |
747 | Silicon Graphics, Inc. This document is licensed under the SGI | |
748 | Free Software B License. For details, see | |
749 | <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>. | |
750 | </para> | |
751 | </refsect1> | |
752 | </refentry> |