forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glGet.xhtml
945 lines (942 loc) · 66.4 KB
/
glGet.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
<div class="refentry" title="glGet"><a id="glGet"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glGet — return the value or values of a selected parameter</p></div><div class="refsynopsisdiv" title="C Specification"><h2>C Specification</h2><div class="funcsynopsis"><table class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glGetBooleanv</b>(</code></td><td>GLenum <var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLboolean * <var class="pdparam">params</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><div class="funcsynopsis"><table class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glGetFixedv</b>(</code></td><td>GLenum <var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLfixed * <var class="pdparam">params</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><div class="funcsynopsis"><table class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glGetFloatv</b>(</code></td><td>GLenum <var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLfloat * <var class="pdparam">params</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><div class="funcsynopsis"><table class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glGetIntegerv</b>(</code></td><td>GLenum <var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLint * <var class="pdparam">params</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1" title="Parameters"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term">
<em class="parameter"><code>pname</code></em>
</span></dt><dd><p>Specifies the parameter value to be returned. The
symbolic constants in the list below are accepted.</p></dd><dt><span class="term">
<em class="parameter"><code>params</code></em>
</span></dt><dd><p>Returns the value or values of the specified parameter.</p></dd></dl></div></div><div class="refsect1" title="Description"><a id="description"></a><h2>Description</h2><p>
These commands return values for static state variables in GL.
<em class="parameter"><code>pname</code></em>
is a symbolic constant indicating the static state variable to
be returned, and <em class="parameter"><code>params</code></em>
is a pointer to an array of the indicated type in which to place the
returned data.</p><p>
If a Get command is issued that returns value types different from the type of the
value being obtained, a type conversion is performed.
If GetBooleanv is called, a floating-point or integer value converts to <code class="constant">GL_FALSE</code>
if and only if it is <code class="constant">zero</code> (otherwise it converts to <code class="constant">GL_TRUE</code>).
If GetIntegerv is called, a boolean value is interpreted as either <code class="constant">1</code>
or <code class="constant">0</code>, and a floating-point value is rounded to the nearest integer,
unless the value is an RGBA color component, a DepthRange value, a depth buffer clear value, or a normal coordinate.
In these cases, the Get command does a linear mapping that maps <code class="constant">1.0</code> to the most positive representable
integer value, and <code class="constant">-1.0</code> to the most negative representable integer value.
If GetFloatv is called, a boolean value is interpreted as either <code class="constant">1.0</code> or <code class="constant">0.0</code>, an integer
is coerced to floating-point. If a value is so large in magnitude that it cannot be represented with
the requested type, then the nearest value representable using the requested type is returned.
</p><p>The following symbolic constants are accepted by
<em class="parameter"><code>pname</code></em>:</p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_ACTIVE_TEXTURE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single value indicating the active multitexture unit.
The initial value is <code class="constant">GL_TEXTURE0</code>.
See <a class="citerefentry" href="glActiveTexture"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_ALIASED_POINT_SIZE_RANGE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns two values,
the smallest and largest supported sizes for
aliased points. The range must include <code class="constant">1</code>.
See <a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_ALIASED_LINE_WIDTH_RANGE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns two values,
the smallest and largest supported widths for
aliased lines. The range must include <code class="constant">1</code>.
See <a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_ALPHA_BITS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of alpha bitplanes in the
color buffer.
</p></dd><dt><span class="term">
<code class="constant">GL_ALPHA_TEST</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether alpha
testing of fragments is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glAlphaFunc"><span class="citerefentry"><span class="refentrytitle">glAlphaFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_ALPHA_TEST_FUNC</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the symbolic name of the alpha test function.
See <a class="citerefentry" href="glAlphaFunc"><span class="citerefentry"><span class="refentrytitle">glAlphaFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_ALPHA_TEST_REF</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the reference value for the alpha test.
An integer value, if requested, is linearly mapped from
the internal floating-point representation such that <code class="constant">1.0</code>
returns the most positive representable integer value, and <code class="constant">-1.0</code>
returns the most negative representable integer value.
See <a class="citerefentry" href="glAlphaFunc"><span class="citerefentry"><span class="refentrytitle">glAlphaFunc</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_ARRAY_BUFFER_BINDING</code></span></dt><dd><p>
</p><p>
<em class="parameter"><code>params</code></em> returns a single value, the name of the buffer object
currently bound to the target <code class="constant">GL_ARRAY_BUFFER</code>. If no buffer object
is bound to this target, <code class="constant">0</code> is returned. The initial value is <code class="constant">0</code>.
See <a class="citerefentry" href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_BLEND</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
blending of fragments is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glBlendFunc"><span class="citerefentry"><span class="refentrytitle">glBlendFunc</span></span></a> and
<a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_BLEND_DST</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the symbolic constant identifying the destination blend function.
See <a class="citerefentry" href="glBlendFunc"><span class="citerefentry"><span class="refentrytitle">glBlendFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_BLEND_SRC</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the symbolic constant identifying the source blend function.
See <a class="citerefentry" href="glBlendFunc"><span class="citerefentry"><span class="refentrytitle">glBlendFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_BLUE_BITS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of blue bitplanes in the
color buffer.
</p></dd><dt><span class="term"><code class="constant">GL_CLIENT_ACTIVE_TEXTURE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single value indicating the current
client active multitexture unit.
The initial value is <code class="constant">GL_TEXTURE0</code>.
See <a class="citerefentry" href="glClientActiveTexture"><span class="citerefentry"><span class="refentrytitle">glClientActiveTexture</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_CLIP_PLANE</code><span class="emphasis"><em>i</em></span>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether the
<span class="emphasis"><em>i</em></span>th user clipping plane is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glClipPlane"><span class="citerefentry"><span class="refentrytitle">glClipPlane</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_ARRAY</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
the color array is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_ARRAY_BUFFER_BINDING</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the color array buffer binding.
See <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_ARRAY_SIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of components per color in the color array.
See <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_ARRAY_STRIDE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte offset between consecutive colors in the color array.
See <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_ARRAY_TYPE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
returns the data type of each component in the color array.
See <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_CLEAR_VALUE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four values:
the <em class="parameter"><code>red</code></em>, <em class="parameter"><code>green</code></em>,
<em class="parameter"><code>blue</code></em>, and <em class="parameter"><code>alpha</code></em>
values used to clear the color buffers.
See <a class="citerefentry" href="glClearColor"><span class="citerefentry"><span class="refentrytitle">glClearColor</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_LOGIC_OP</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
logical operation on color values is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_MATERIAL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
color material tracking is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glMaterial"><span class="citerefentry"><span class="refentrytitle">glMaterial</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COLOR_WRITEMASK</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four boolean values:
the <em class="parameter"><code>red</code></em>, <em class="parameter"><code>green</code></em>,
<em class="parameter"><code>blue</code></em>, and <em class="parameter"><code>alpha</code></em>
write enables for the color buffers.
See <a class="citerefentry" href="glColorMask"><span class="citerefentry"><span class="refentrytitle">glColorMask</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_COMPRESSED_TEXTURE_FORMATS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns
<code class="constant">GL_NUM_COMPRESSED_TEXTURE_FORMATS</code>
values, the supported compressed texture formats.
See
<a class="citerefentry" href="glCompressedTexImage2D"><span class="citerefentry"><span class="refentrytitle">glCompressedTexImage2D</span></span></a>
and
<a class="citerefentry" href="glCompressedTexSubImage2D"><span class="citerefentry"><span class="refentrytitle">glCompressedTexSubImage2D</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_CULL_FACE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether polygon culling
is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glCullFace"><span class="citerefentry"><span class="refentrytitle">glCullFace</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_CULL_FACE_MODE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns one value,
a symbolic constant indicating which polygon faces are to be
culled. The initial value is <code class="constant">GL_BACK</code>.
See <a class="citerefentry" href="glCullFace"><span class="citerefentry"><span class="refentrytitle">glCullFace</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_CURRENT_COLOR</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns four values:
the red, green, blue, and alpha values of the current color.
Integer values,
if requested,
are linearly mapped from the internal floating-point representation such
that 1.0 returns the most positive representable integer value,
and
<math overflow="scroll">
<mn>-1.0</mn>
</math>
returns the most negative representable integer value.
The initial value is (1, 1, 1, 1).
See <a class="citerefentry" href="glColor"><span class="citerefentry"><span class="refentrytitle">glColor</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_CURRENT_NORMAL</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns three values:
the <span class="emphasis"><em>x</em></span>, <span class="emphasis"><em>y</em></span>, and <span class="emphasis"><em>z</em></span> values of the current normal.
Integer values,
if requested,
are linearly mapped from the internal floating-point representation such
that 1.0 returns the most positive representable integer value,
and
<math overflow="scroll">
<mn>-1.0</mn>
</math>
returns the most negative representable integer value.
The initial value is (0, 0, 1).
See <a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_CURRENT_TEXTURE_COORDS</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns four values:
the <span class="emphasis"><em>s</em></span>, <span class="emphasis"><em>t</em></span>, <span class="emphasis"><em>r</em></span>, and <span class="emphasis"><em>q</em></span> current texture
coordinates. The initial value is (0, 0, 0, 1).
See <a class="citerefentry" href="glMultiTexCoord"><span class="citerefentry"><span class="refentrytitle">glMultiTexCoord</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_BITS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the number of bitplanes in the depth
buffer.</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_CLEAR_VALUE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the value that is used to clear the depth buffer.
See <a class="citerefentry" href="glClearDepth"><span class="citerefentry"><span class="refentrytitle">glClearDepth</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_FUNC</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the symbolic name of the depth comparision function.
See <a class="citerefentry" href="glDepthFunc"><span class="citerefentry"><span class="refentrytitle">glDepthFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_RANGE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns two values:
the near and far mapping limits for the depth buffer.
See <a class="citerefentry" href="glDepthRange"><span class="citerefentry"><span class="refentrytitle">glDepthRange</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_TEST</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether depth testing
of fragments is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glDepthFunc"><span class="citerefentry"><span class="refentrytitle">glDepthFunc</span></span></a> and <a class="citerefentry" href="glDepthRange"><span class="citerefentry"><span class="refentrytitle">glDepthRange</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_DEPTH_WRITEMASK</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns a single boolean value
indicating if the depth buffer is enabled for writing.
See <a class="citerefentry" href="glDepthMask"><span class="citerefentry"><span class="refentrytitle">glDepthMask</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_ELEMENT_ARRAY_BUFFER_BINDING</code></span></dt><dd><p>
</p><p>
<em class="parameter"><code>params</code></em> returns a single value, the name of the buffer object
currently bound to the target <code class="constant">GL_ELEMENT_ARRAY_BUFFER</code>. If no buffer object
is bound to this target, 0 is returned. The initial value is <code class="constant">0</code>.
See <a class="citerefentry" href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether fog
is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_COLOR</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four values:
the <em class="parameter"><code>red</code></em>, <em class="parameter"><code>green</code></em>,
<em class="parameter"><code>blue</code></em>, and <em class="parameter"><code>alpha</code></em>
components of the fog color.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_DENSITY</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the fog density parameter.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_END</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the end factor for the linear fog equation.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_HINT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating the mode of the fog hint.
See <a class="citerefentry" href="glHint"><span class="citerefentry"><span class="refentrytitle">glHint</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_MODE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating which fog equation is selected.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FOG_START</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the start factor for the linear fog equation.
See <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_FRONT_FACE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating whether clockwise or
counterclockwise polygon winding is treated as front-facing.
See <a class="citerefentry" href="glFrontFace"><span class="citerefentry"><span class="refentrytitle">glFrontFace</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_GREEN_BITS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the number of green bitplanes in the
color buffer.</p></dd><dt><span class="term">
<code class="constant">GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the preferred format for pixel read back. See
<a class="citerefentry" href="glReadPixels"><span class="citerefentry"><span class="refentrytitle">glReadPixels</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_IMPLEMENTATION_COLOR_READ_TYPE_OES</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the preferred type for pixel read back. See
<a class="citerefentry" href="glReadPixels"><span class="citerefentry"><span class="refentrytitle">glReadPixels</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_LIGHT_MODEL_AMBIENT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four values:
the <em class="parameter"><code>red</code></em>, <em class="parameter"><code>green</code></em>,
<em class="parameter"><code>blue</code></em>, and <em class="parameter"><code>alpha</code></em>
components of the ambient intensity of the entire scene.
See <a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LIGHT_MODEL_TWO_SIDE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns a single boolean value
indicating whether separate materials are used to compute
lighting for front and back facing polygons.
See <a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LIGHT</code><span class="emphasis"><em>i</em></span>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether the
<span class="emphasis"><em>i</em></span>th light is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a> and
<a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LIGHTING</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether lighting
is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <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>, and
<a class="citerefentry" href="glMaterial"><span class="citerefentry"><span class="refentrytitle">glMaterial</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LINE_SMOOTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether line
antialiasing is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LINE_SMOOTH_HINT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating the mode of the line antialiasing hint.
See <a class="citerefentry" href="glHint"><span class="citerefentry"><span class="refentrytitle">glHint</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LINE_WIDTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the line width as specified with
<a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_LOGIC_OP_MODE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating the selected logic operation mode.
See <a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MATRIX_MODE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating which matrix stack is currently the
target of all matrix operations.
See <a class="citerefentry" href="glMatrixMode"><span class="citerefentry"><span class="refentrytitle">glMatrixMode</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MAX_CLIP_PLANES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the maximum number of application defined clipping planes.
The value must be at least <code class="constant">6</code>.
See <a class="citerefentry" href="glClipPlane"><span class="citerefentry"><span class="refentrytitle">glClipPlane</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MAX_LIGHTS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the maximum number of lights. The
value must be at least 8. See
<a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MAX_MODELVIEW_STACK_DEPTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the maximum supported depth of the
modelview matrix stack.
The value must be at least <code class="constant">16</code>.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MAX_PROJECTION_STACK_DEPTH</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the maximum supported depth of the
projection matrix stack. The value must be at least 2.
See
<a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MAX_TEXTURE_SIZE</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value. The value gives a rough estimate of the largest
texture that the GL can handle. The value must be at least 64.
See
<a class="citerefentry" href="glTexImage2D"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>,
<a class="citerefentry" href="glCompressedTexImage2D"><span class="citerefentry"><span class="refentrytitle">glCompressedTexImage2D</span></span></a>, and
<a class="citerefentry" href="glCopyTexImage2D"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MAX_TEXTURE_STACK_DEPTH</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the maximum supported depth of the
texture matrix stack. The value must be at least 2. See
<a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MAX_TEXTURE_UNITS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns a single value indicating the number of texture
units supported. The value must be at least 1. See
<a class="citerefentry" href="glActiveTexture"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>,
<a class="citerefentry" href="glClientActiveTexture"><span class="citerefentry"><span class="refentrytitle">glClientActiveTexture</span></span></a>
and
<a class="citerefentry" href="glMultiTexCoord"><span class="citerefentry"><span class="refentrytitle">glMultiTexCoord</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MAX_VIEWPORT_DIMS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns two values: the maximum supported width and
height of the viewport. These must be at least as large
as the visible dimensions of the display being rendered
to. See
<a class="citerefentry" href="glViewport"><span class="citerefentry"><span class="refentrytitle">glViewport</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_MODELVIEW_MATRIX</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns sixteen values:
the modelview matrix on the top of the modelview matrix stack.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MODELVIEW_STACK_DEPTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of matrices on the modelview matrix stack.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_MULTISAMPLE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether multisampling
is enabled. The initial value is <code class="constant">GL_TRUE</code>.
</p></dd><dt><span class="term">
<code class="constant">GL_NORMAL_ARRAY</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
the normal array is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_NORMAL_ARRAY_BUFFER_BINDING</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the normal array buffer binding.
See <a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_NORMAL_ARRAY_STRIDE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte offset between consective normals in the normal array.
See <a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_NORMAL_ARRAY_TYPE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the data type of each normal in the normal array.
See <a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_NORMALIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
normalization of normals is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_NUM_COMPRESSED_TEXTURE_FORMATS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of supportex compressed
texture formats.
The value must be at least <code class="constant">10</code>.
See
<a class="citerefentry" href="glCompressedTexImage2D"><span class="citerefentry"><span class="refentrytitle">glCompressedTexImage2D</span></span></a>
and
<a class="citerefentry" href="glCompressedTexSubImage2D"><span class="citerefentry"><span class="refentrytitle">glCompressedTexSubImage2D</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_PACK_ALIGNMENT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte alignment used for writing pixel data to memory.
See <a class="citerefentry" href="glPixelStorei"><span class="citerefentry"><span class="refentrytitle">glPixelStorei</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_PERSPECTIVE_CORRECTION_HINT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating the mode of the perspective correction hint.
See <a class="citerefentry" href="glHint"><span class="citerefentry"><span class="refentrytitle">glHint</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_DISTANCE_ATTENUATION</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns three values, the distance attenuation function coefficients <span class="emphasis"><em>a</em></span>,
<span class="emphasis"><em>b</em></span>, and <span class="emphasis"><em>c</em></span>. The initial value is (1, 0, 0). See
<a class="citerefentry" href="glPointParameter"><span class="citerefentry"><span class="refentrytitle">glPointParameter</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value, the point fade threshold. The initial value is <code class="constant">1</code>. See
<a class="citerefentry" href="glPointParameter"><span class="citerefentry"><span class="refentrytitle">glPointParameter</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the point size as specified by
<a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the point size array buffer binding.
See <a class="citerefentry" href="glPointSizePointerOES"><span class="citerefentry"><span class="refentrytitle">glPointSizePointerOES</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_ARRAY_OES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether the point
size array is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glPointSizePointerOES"><span class="citerefentry"><span class="refentrytitle">glPointSizePointerOES</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_ARRAY_STRIDE_OES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte offset between consecutive point sizes in the point size array.
See <a class="citerefentry" href="glPointSizePointerOES"><span class="citerefentry"><span class="refentrytitle">glPointSizePointerOES</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_ARRAY_TYPE_OES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the data type of each point size in the point array.
See <a class="citerefentry" href="glPointSizePointerOES"><span class="citerefentry"><span class="refentrytitle">glPointSizePointerOES</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_MAX</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the upper bound to which the derived point size is
clamped. The initial value is the maximum of the implementation dependent max
aliased and smooth point sizes. See
<a class="citerefentry" href="glPointParameter"><span class="citerefentry"><span class="refentrytitle">glPointParameter</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SIZE_MIN</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the lower bound to which the derived point size is
clamped. The initial value is <code class="constant">0</code>. See
<a class="citerefentry" href="glPointParameter"><span class="citerefentry"><span class="refentrytitle">glPointParameter</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SMOOTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether point
antialiasing is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SMOOTH_HINT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating the mode of the point antialiasing hint.
See <a class="citerefentry" href="glHint"><span class="citerefentry"><span class="refentrytitle">glHint</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POINT_SPRITE_OES</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether point
sprites are enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glTexEnv"><span class="citerefentry"><span class="refentrytitle">glTexEnv</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POLYGON_OFFSET_FACTOR</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the scaling factor used to determine the variable offset that is added
to the depth value of each fragment generated when a polygon is rasterized.
See <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POLYGON_OFFSET_FILL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether polygon offset
is enabled for polygons in fill mode. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_POLYGON_OFFSET_UNITS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value.
This value is multiplied by an implementation-specific value and
then added to the depth value of each fragment generated when a
polygon is rasterized.
See <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_PROJECTION_MATRIX</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns sixteen values:
the projection matrix on the top of the projection matrix stack.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_PROJECTION_STACK_DEPTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of matrices on the projection matrix stack.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_RED_BITS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of red bitplanes in each color buffer.
</p></dd><dt><span class="term">
<code class="constant">GL_RESCALE_NORMAL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
rescaling of normals is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_ALPHA_TO_COVERAGE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating if the
fragment coverage value should be ANDed with a temporary coverage value based
on the fragment's alpha value. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_ALPHA_TO_ONE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating if the
fragment's alpha value should be replaced by the maximum representable alpha value
after coverage determination. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_BUFFERS</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single integer value indicating the number of sample buffers
associated with the currently bound framebuffer.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_COVERAGE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating if the
fragment coverage value should be ANDed with a temporary coverage value based
on the current sample coverage value. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_COVERAGE_INVERT</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating if the temporary
coverage value should be inverted.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLE_COVERAGE_VALUE</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single positive floating-point value indicating the
current sample coverage value.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SAMPLES</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single integer value
indicating the coverage mask size of the currently bound framebuffer.
See <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_SCISSOR_BOX</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four values:
the <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> window coordinates of the scissor box,
followed by its <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>.
See <a class="citerefentry" href="glScissor"><span class="citerefentry"><span class="refentrytitle">glScissor</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_SCISSOR_TEST</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether scissoring is
enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glScissor"><span class="citerefentry"><span class="refentrytitle">glScissor</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_SHADE_MODEL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating whether the shading mode is
flat or smooth.
See <a class="citerefentry" href="glShadeModel"><span class="citerefentry"><span class="refentrytitle">glShadeModel</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_SMOOTH_LINE_WIDTH_RANGE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns two values, the smallest and largest supported
widths for antialiased lines. The range must include 1. See
<a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_SMOOTH_POINT_SIZE_RANGE</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns two values, the smallest and largest supported
widths for antialiased points. The range must include 1. See
<a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>.</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_BITS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, the number of bitplanes in the stencil
buffer.</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_CLEAR_VALUE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the index to which the stencil bitplanes are cleared.
See <a class="citerefentry" href="glClearStencil"><span class="citerefentry"><span class="refentrytitle">glClearStencil</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_FAIL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating what action is taken when the stencil test fails.
See <a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_FUNC</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating what function is used to compare the
stencil reference value with the stencil buffer value.
See <a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_PASS_DEPTH_FAIL</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating what action is taken when the stencil
test passes, but the depth test fails.
See <a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_PASS_DEPTH_PASS</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
a symbolic constant indicating what action is taken when the stencil
test passes, and the depth test passes.
See <a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_REF</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the reference value that is compared with the contents of the stencil buffer.
See <a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a>.
</p></dd><dt><span class="term"><code class="constant">GL_STENCIL_TEST</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether stencil testing
of fragments is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a> and <a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_VALUE_MASK</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the mask that is used to mask both the stencil reference value and the
stencil buffer value before they are compared.
See <a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_STENCIL_WRITEMASK</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the mask that controls writing of the stencil bitplanes.
See <a class="citerefentry" href="glStencilMask"><span class="citerefentry"><span class="refentrytitle">glStencilMask</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_SUBPIXEL_BITS</code>
</span></dt><dd><p><em class="parameter"><code>params</code></em>
returns one value, an estimate of the number of bits of
subpixel resolution that are used to position rasterized
geometry in window coordinates. The value must be at
least 4.</p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_2D</code></span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether 2D
texturing is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glTexImage2D"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_BINDING_2D</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the name of the texture currently bound to the target <code class="constant">GL_TEXTURE_2D</code>.
See <a class="citerefentry" href="glBindTexture"><span class="citerefentry"><span class="refentrytitle">glBindTexture</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_COORD_ARRAY</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
the texture coordinate array is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the texture coordinate array buffer binding.
See <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_COORD_ARRAY_SIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of coordinates per element in the texture coordinate array.
See <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_COORD_ARRAY_STRIDE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte offset between consecutive elements in the texture coordinate array.
See <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_COORD_ARRAY_TYPE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
returns the data type of each coordinate in the texture coordinate array.
See <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_MATRIX</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns sixteen values:
the texture matrix on the top of the texture matrix stack.
See <a class="citerefentry" href="glPushMatrix"><span class="citerefentry"><span class="refentrytitle">glPushMatrix</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_TEXTURE_STACK_DEPTH</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the number of matrices on the texture matrix stack.
See <a class="citerefentry" href="glBindTexture"><span class="citerefentry"><span class="refentrytitle">glBindTexture</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_UNPACK_ALIGNMENT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte alignment used for reading pixel data from memory.
See <a class="citerefentry" href="glPixelStorei"><span class="citerefentry"><span class="refentrytitle">glPixelStorei</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VIEWPORT</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns four values:,
the <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> window coordinates of the viewport,
followed by its <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>.
See <a class="citerefentry" href="glViewport"><span class="citerefentry"><span class="refentrytitle">glViewport</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VERTEX_ARRAY</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em> returns a single boolean value indicating whether
the vertex array is enabled. The initial value is <code class="constant">GL_FALSE</code>.
See <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VERTEX_ARRAY_BUFFER_BINDING</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the vertex array buffer binding.
See <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VERTEX_ARRAY_SIZE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
number of coordinates per vertex in the vertex array.
See <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VERTEX_ARRAY_STRIDE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
the byte offset between consecutive vertexes in the vertex array.
See <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>.
</p></dd><dt><span class="term">
<code class="constant">GL_VERTEX_ARRAY_TYPE</code>
</span></dt><dd><p>
<em class="parameter"><code>params</code></em>
returns one value,
returns the data type of each coordinate in the vertex array.
See <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>.
</p></dd></dl></div></div><div class="refsect1" title="Notes"><a id="notes"></a><h2>Notes</h2><p>
<code class="constant">GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES</code>,
<code class="constant">GL_POINT_SIZE_ARRAY_STRIDE_OES</code>, and
<code class="constant">GL_POINT_SIZE_ARRAY_TYPE_OES</code> are only accepted
if the OpenGL ES version number is 1.1 or greater.
</p></div><div class="refsect1" title="Errors"><a id="errors"></a><h2>Errors</h2><p><code class="constant">GL_INVALID_ENUM</code> is generated if
<em class="parameter"><code>pname</code></em> is not an accepted value.</p></div><div class="refsect1" title="See Also"><a id="seealso"></a><h2>See Also</h2><p>
<a class="citerefentry" href="glGetError"><span class="citerefentry"><span class="refentrytitle">glGetError</span></span></a>,
<a class="citerefentry" href="glGetString"><span class="citerefentry"><span class="refentrytitle">glGetString</span></span></a>
</p></div><div class="refsect1" title="Copyright"><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>