1GLGET(3G) OpenGL Manual GLGET(3G)
2
3
4
6 glGet - return the value or values of a selected parameter
7
9 void glGetBooleanv(GLenum pname, GLboolean * params);
10
12 void glGetDoublev(GLenum pname, GLdouble * params);
13
15 void glGetFloatv(GLenum pname, GLfloat * params);
16
18 void glGetIntegerv(GLenum pname, GLint * params);
19
21 void glGetInteger64v(GLenum pname, GLint64 * params);
22
24 pname
25 Specifies the parameter value to be returned. The symbolic
26 constants in the list below are accepted.
27
28 params
29 Returns the value or values of the specified parameter.
30
32 void glGetBooleani_v(GLenum pname, GLuint index, GLboolean * data);
33
35 void glGetIntegeri_v(GLenum pname, GLuint index, GLint * data);
36
38 void glGetFloati_v(GLenum pname, GLuint index, GLfloat * data);
39
41 void glGetDoublei_v(GLenum pname, GLuint index, GLdouble * data);
42
44 void glGetInteger64i_v(GLenum pname, GLuint index, GLint64 * data);
45
47 pname
48 Specifies the parameter value to be returned. The symbolic
49 constants in the list below are accepted.
50
51 index
52 Specifies the index of the particular element being queried.
53
54 data
55 Returns the value or values of the specified parameter.
56
58 These four commands return values for simple state variables in GL.
59 pname is a symbolic constant indicating the state variable to be
60 returned, and params is a pointer to an array of the indicated type in
61 which to place the returned data.
62
63 Type conversion is performed if params has a different type than the
64 state variable value being requested. If glGetBooleanv is called, a
65 floating-point (or integer) value is converted to GL_FALSE if and only
66 if it is 0.0 (or 0). Otherwise, it is converted to GL_TRUE. If
67 glGetIntegerv is called, boolean values are returned as GL_TRUE or
68 GL_FALSE, and most floating-point values are rounded to the nearest
69 integer value. Floating-point colors and normals, however, are returned
70 with a linear mapping that maps 1.0 to the most positive representable
71 integer value and -1.0 to the most negative representable integer
72 value. If glGetFloatv or glGetDoublev is called, boolean values are
73 returned as GL_TRUE or GL_FALSE, and integer values are converted to
74 floating-point values.
75
76 The following symbolic constants are accepted by pname:
77
78 GL_ACTIVE_TEXTURE
79
80 params returns a single value indicating the active multitexture
81 unit. The initial value is GL_TEXTURE0. See glActiveTexture().
82
83 GL_ALIASED_LINE_WIDTH_RANGE
84
85 params returns a pair of values indicating the range of widths
86 supported for aliased lines. See glLineWidth().
87
88 GL_ARRAY_BUFFER_BINDING
89
90 params returns a single value, the name of the buffer object
91 currently bound to the target GL_ARRAY_BUFFER. If no buffer object
92 is bound to this target, 0 is returned. The initial value is 0. See
93 glBindBuffer().
94
95 GL_BLEND
96
97 params returns a single boolean value indicating whether blending
98 is enabled. The initial value is GL_FALSE. See glBlendFunc().
99
100 GL_BLEND_COLOR
101
102 params returns four values, the red, green, blue, and alpha values
103 which are the components of the blend color. See glBlendColor().
104
105 GL_BLEND_DST_ALPHA
106
107 params returns one value, the symbolic constant identifying the
108 alpha destination blend function. The initial value is GL_ZERO. See
109 glBlendFunc() and glBlendFuncSeparate().
110
111 GL_BLEND_DST_RGB
112
113 params returns one value, the symbolic constant identifying the RGB
114 destination blend function. The initial value is GL_ZERO. See
115 glBlendFunc() and glBlendFuncSeparate().
116
117 GL_BLEND_EQUATION_RGB
118
119 params returns one value, a symbolic constant indicating whether
120 the RGB blend equation is GL_FUNC_ADD, GL_FUNC_SUBTRACT,
121 GL_FUNC_REVERSE_SUBTRACT, GL_MIN or GL_MAX. See
122 glBlendEquationSeparate().
123
124 GL_BLEND_EQUATION_ALPHA
125
126 params returns one value, a symbolic constant indicating whether
127 the Alpha blend equation is GL_FUNC_ADD, GL_FUNC_SUBTRACT,
128 GL_FUNC_REVERSE_SUBTRACT, GL_MIN or GL_MAX. See
129 glBlendEquationSeparate().
130
131 GL_BLEND_SRC_ALPHA
132
133 params returns one value, the symbolic constant identifying the
134 alpha source blend function. The initial value is GL_ONE. See
135 glBlendFunc() and glBlendFuncSeparate().
136
137 GL_BLEND_SRC_RGB
138
139 params returns one value, the symbolic constant identifying the RGB
140 source blend function. The initial value is GL_ONE. See
141 glBlendFunc() and glBlendFuncSeparate().
142
143 GL_COLOR_CLEAR_VALUE
144
145 params returns four values: the red, green, blue, and alpha values
146 used to clear the color buffers. Integer values, if requested, are
147 linearly mapped from the internal floating-point representation
148 such that 1.0 returns the most positive representable integer
149 value, and -1.0 returns the most negative representable integer
150 value. The initial value is (0, 0, 0, 0). See glClearColor().
151
152 GL_COLOR_LOGIC_OP
153
154 params returns a single boolean value indicating whether a
155 fragment's RGBA color values are merged into the framebuffer using
156 a logical operation. The initial value is GL_FALSE. See
157 glLogicOp().
158
159 GL_COLOR_WRITEMASK
160
161 params returns four boolean values: the red, green, blue, and alpha
162 write enables for the color buffers. The initial value is (GL_TRUE,
163 GL_TRUE, GL_TRUE, GL_TRUE). See glColorMask().
164
165 GL_COMPRESSED_TEXTURE_FORMATS
166
167 params returns a list of symbolic constants of length
168 GL_NUM_COMPRESSED_TEXTURE_FORMATS indicating which compressed
169 texture formats are available. See glCompressedTexImage2D().
170
171 GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS
172
173 params returns one value, the maximum number of active shader
174 storage blocks that may be accessed by a compute shader.
175
176 GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS
177
178 params returns one value, the maximum total number of active shader
179 storage blocks that may be accessed by all active shaders.
180
181 GL_MAX_COMPUTE_UNIFORM_BLOCKS
182
183 params returns one value, the maximum number of uniform blocks per
184 compute shader. The value must be at least 14. See
185 glUniformBlockBinding().
186
187 GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS
188
189 params returns one value, the maximum supported texture image units
190 that can be used to access texture maps from the compute shader.
191 The value may be at least 16. See glActiveTexture().
192
193 GL_MAX_COMPUTE_UNIFORM_COMPONENTS
194
195 params returns one value, the maximum number of individual
196 floating-point, integer, or boolean values that can be held in
197 uniform variable storage for a compute shader. The value must be at
198 least 1024. See glUniform().
199
200 GL_MAX_COMPUTE_ATOMIC_COUNTERS
201
202 params returns a single value, the maximum number of atomic
203 counters available to compute shaders.
204
205 GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS
206
207 params returns a single value, the maximum number of atomic counter
208 buffers that may be accessed by a compute shader.
209
210 GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS
211
212 params returns one value, the number of words for compute shader
213 uniform variables in all uniform blocks (including default). The
214 value must be at least 1. See glUniform().
215
216 GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS
217
218 params returns one value, the number of invocations in a single
219 local work group (i.e., the product of the three dimensions) that
220 may be dispatched to a compute shader.
221
222 GL_MAX_COMPUTE_WORK_GROUP_COUNT
223
224 Accepted by the indexed versions of glGet. params the maximum
225 number of work groups that may be dispatched to a compute shader.
226 Indices 0, 1, and 2 correspond to the X, Y and Z dimensions,
227 respectively.
228
229 GL_MAX_COMPUTE_WORK_GROUP_SIZE
230
231 Accepted by the indexed versions of glGet. params the maximum size
232 of a work groups that may be used during compilation of a compute
233 shader. Indices 0, 1, and 2 correspond to the X, Y and Z
234 dimensions, respectively.
235
236 GL_DISPATCH_INDIRECT_BUFFER_BINDING
237
238 params returns a single value, the name of the buffer object
239 currently bound to the target GL_DISPATCH_INDIRECT_BUFFER. If no
240 buffer object is bound to this target, 0 is returned. The initial
241 value is 0. See glBindBuffer().
242
243 GL_MAX_DEBUG_GROUP_STACK_DEPTH
244
245 params returns a single value, the maximum depth of the debug
246 message group stack.
247
248 GL_DEBUG_GROUP_STACK_DEPTH
249
250 params returns a single value, the current depth of the debug
251 message group stack.
252
253 GL_CONTEXT_FLAGS
254
255 params returns one value, the flags with which the context was
256 created (such as debugging functionality).
257
258 GL_CULL_FACE
259
260 params returns a single boolean value indicating whether polygon
261 culling is enabled. The initial value is GL_FALSE. See
262 glCullFace().
263
264 GL_CURRENT_PROGRAM
265
266 params returns one value, the name of the program object that is
267 currently active, or 0 if no program object is active. See
268 glUseProgram().
269
270 GL_DEPTH_CLEAR_VALUE
271
272 params returns one value, the value that is used to clear the depth
273 buffer. Integer values, if requested, are linearly mapped from the
274 internal floating-point representation such that 1.0 returns the
275 most positive representable integer value, and -1.0 returns the
276 most negative representable integer value. The initial value is 1.
277 See glClearDepth().
278
279 GL_DEPTH_FUNC
280
281 params returns one value, the symbolic constant that indicates the
282 depth comparison function. The initial value is GL_LESS. See
283 glDepthFunc().
284
285 GL_DEPTH_RANGE
286
287 params returns two values: the near and far mapping limits for the
288 depth buffer. Integer values, if requested, are linearly mapped
289 from the internal floating-point representation such that 1.0
290 returns the most positive representable integer value, and -1.0
291 returns the most negative representable integer value. The initial
292 value is (0, 1). See glDepthRange().
293
294 GL_DEPTH_TEST
295
296 params returns a single boolean value indicating whether depth
297 testing of fragments is enabled. The initial value is GL_FALSE. See
298 glDepthFunc() and glDepthRange().
299
300 GL_DEPTH_WRITEMASK
301
302 params returns a single boolean value indicating if the depth
303 buffer is enabled for writing. The initial value is GL_TRUE. See
304 glDepthMask().
305
306 GL_DITHER
307
308 params returns a single boolean value indicating whether dithering
309 of fragment colors and indices is enabled. The initial value is
310 GL_TRUE.
311
312 GL_DOUBLEBUFFER
313
314 params returns a single boolean value indicating whether double
315 buffering is supported.
316
317 GL_DRAW_BUFFER
318
319 params returns one value, a symbolic constant indicating which
320 buffers are being drawn to. See glDrawBuffer(). The initial value
321 is GL_BACK if there are back buffers, otherwise it is GL_FRONT.
322
323 GL_DRAW_BUFFERi
324
325 params returns one value, a symbolic constant indicating which
326 buffers are being drawn to by the corresponding output color. See
327 glDrawBuffers(). The initial value of GL_DRAW_BUFFER0 is GL_BACK if
328 there are back buffers, otherwise it is GL_FRONT. The initial
329 values of draw buffers for all other output colors is GL_NONE.
330
331 GL_DRAW_FRAMEBUFFER_BINDING
332
333 params returns one value, the name of the framebuffer object
334 currently bound to the GL_DRAW_FRAMEBUFFER target. If the default
335 framebuffer is bound, this value will be zero. The initial value is
336 zero. See glBindFramebuffer().
337
338 GL_READ_FRAMEBUFFER_BINDING
339
340 params returns one value, the name of the framebuffer object
341 currently bound to the GL_READ_FRAMEBUFFER target. If the default
342 framebuffer is bound, this value will be zero. The initial value is
343 zero. See glBindFramebuffer().
344
345 GL_ELEMENT_ARRAY_BUFFER_BINDING
346
347 params returns a single value, the name of the buffer object
348 currently bound to the target GL_ELEMENT_ARRAY_BUFFER. If no buffer
349 object is bound to this target, 0 is returned. The initial value is
350 0. See glBindBuffer().
351
352 GL_FRAGMENT_SHADER_DERIVATIVE_HINT
353
354 params returns one value, a symbolic constant indicating the mode
355 of the derivative accuracy hint for fragment shaders. The initial
356 value is GL_DONT_CARE. See glHint().
357
358 GL_IMPLEMENTATION_COLOR_READ_FORMAT
359
360 params returns a single GLenum value indicating the
361 implementation's preferred pixel data format. See glReadPixels().
362
363 GL_IMPLEMENTATION_COLOR_READ_TYPE
364
365 params returns a single GLenum value indicating the
366 implementation's preferred pixel data type. See glReadPixels().
367
368 GL_LINE_SMOOTH
369
370 params returns a single boolean value indicating whether
371 antialiasing of lines is enabled. The initial value is GL_FALSE.
372 See glLineWidth().
373
374 GL_LINE_SMOOTH_HINT
375
376 params returns one value, a symbolic constant indicating the mode
377 of the line antialiasing hint. The initial value is GL_DONT_CARE.
378 See glHint().
379
380 GL_LINE_WIDTH
381
382 params returns one value, the line width as specified with
383 glLineWidth(). The initial value is 1.
384
385 GL_LAYER_PROVOKING_VERTEX
386
387 params returns one value, the implementation dependent specifc
388 vertex of a primitive that is used to select the rendering layer.
389 If the value returned is equivalent to GL_PROVOKING_VERTEX, then
390 the vertex selection follows the convention specified by
391 glProvokingVertex(). If the value returned is equivalent to
392 GL_FIRST_VERTEX_CONVENTION, then the selection is always taken from
393 the first vertex in the primitive. If the value returned is
394 equivalent to GL_LAST_VERTEX_CONVENTION, then the selection is
395 always taken from the last vertex in the primitive. If the value
396 returned is equivalent to GL_UNDEFINED_VERTEX, then the selection
397 is not guaranteed to be taken from any specific vertex in the
398 primitive.
399
400 GL_LINE_WIDTH_GRANULARITY
401
402 params returns one value, the width difference between adjacent
403 supported widths for antialiased lines. See glLineWidth().
404
405 GL_LINE_WIDTH_RANGE
406
407 params returns two values: the smallest and largest supported
408 widths for antialiased lines. See glLineWidth().
409
410 GL_LOGIC_OP_MODE
411
412 params returns one value, a symbolic constant indicating the
413 selected logic operation mode. The initial value is GL_COPY. See
414 glLogicOp().
415
416 GL_MAJOR_VERSION
417
418 params returns one value, the major version number of the OpenGL
419 API supported by the current context.
420
421 GL_MAX_3D_TEXTURE_SIZE
422
423 params returns one value, a rough estimate of the largest 3D
424 texture that the GL can handle. The value must be at least 64. Use
425 GL_PROXY_TEXTURE_3D to determine if a texture is too large. See
426 glTexImage3D().
427
428 GL_MAX_ARRAY_TEXTURE_LAYERS
429
430 params returns one value. The value indicates the maximum number of
431 layers allowed in an array texture, and must be at least 256. See
432 glTexImage2D().
433
434 GL_MAX_CLIP_DISTANCES
435
436 params returns one value, the maximum number of application-defined
437 clipping distances. The value must be at least 8.
438
439 GL_MAX_COLOR_TEXTURE_SAMPLES
440
441 params returns one value, the maximum number of samples in a color
442 multisample texture.
443
444 GL_MAX_COMBINED_ATOMIC_COUNTERS
445
446 params returns a single value, the maximum number of atomic
447 counters available to all active shaders.
448
449 GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
450
451 params returns one value, the number of words for fragment shader
452 uniform variables in all uniform blocks (including default). The
453 value must be at least 1. See glUniform().
454
455 GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
456
457 params returns one value, the number of words for geometry shader
458 uniform variables in all uniform blocks (including default). The
459 value must be at least 1. See glUniform().
460
461 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
462
463 params returns one value, the maximum supported texture image units
464 that can be used to access texture maps from the vertex shader and
465 the fragment processor combined. If both the vertex shader and the
466 fragment processing stage access the same texture image unit, then
467 that counts as using two texture image units against this limit.
468 The value must be at least 48. See glActiveTexture().
469
470 GL_MAX_COMBINED_UNIFORM_BLOCKS
471
472 params returns one value, the maximum number of uniform blocks per
473 program. The value must be at least 36. See
474 glUniformBlockBinding().
475
476 GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
477
478 params returns one value, the number of words for vertex shader
479 uniform variables in all uniform blocks (including default). The
480 value must be at least 1. See glUniform().
481
482 GL_MAX_CUBE_MAP_TEXTURE_SIZE
483
484 params returns one value. The value gives a rough estimate of the
485 largest cube-map texture that the GL can handle. The value must be
486 at least 1024. Use GL_PROXY_TEXTURE_CUBE_MAP to determine if a
487 texture is too large. See glTexImage2D().
488
489 GL_MAX_DEPTH_TEXTURE_SAMPLES
490
491 params returns one value, the maximum number of samples in a
492 multisample depth or depth-stencil texture.
493
494 GL_MAX_DRAW_BUFFERS
495
496 params returns one value, the maximum number of simultaneous
497 outputs that may be written in a fragment shader. The value must be
498 at least 8. See glDrawBuffers().
499
500 GL_MAX_DUALSOURCE_DRAW_BUFFERS
501
502 params returns one value, the maximum number of active draw buffers
503 when using dual-source blending. The value must be at least 1. See
504 glBlendFunc() and glBlendFuncSeparate().
505
506 GL_MAX_ELEMENTS_INDICES
507
508 params returns one value, the recommended maximum number of vertex
509 array indices. See glDrawRangeElements().
510
511 GL_MAX_ELEMENTS_VERTICES
512
513 params returns one value, the recommended maximum number of vertex
514 array vertices. See glDrawRangeElements().
515
516 GL_MAX_FRAGMENT_ATOMIC_COUNTERS
517
518 params returns a single value, the maximum number of atomic
519 counters available to fragment shaders.
520
521 GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS
522
523 params returns one value, the maximum number of active shader
524 storage blocks that may be accessed by a fragment shader.
525
526 GL_MAX_FRAGMENT_INPUT_COMPONENTS
527
528 params returns one value, the maximum number of components of the
529 inputs read by the fragment shader, which must be at least 128.
530
531 GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
532
533 params returns one value, the maximum number of individual
534 floating-point, integer, or boolean values that can be held in
535 uniform variable storage for a fragment shader. The value must be
536 at least 1024. See glUniform().
537
538 GL_MAX_FRAGMENT_UNIFORM_VECTORS
539
540 params returns one value, the maximum number of individual
541 4-vectors of floating-point, integer, or boolean values that can be
542 held in uniform variable storage for a fragment shader. The value
543 is equal to the value of GL_MAX_FRAGMENT_UNIFORM_COMPONENTS divided
544 by 4 and must be at least 256. See glUniform().
545
546 GL_MAX_FRAGMENT_UNIFORM_BLOCKS
547
548 params returns one value, the maximum number of uniform blocks per
549 fragment shader. The value must be at least 12. See
550 glUniformBlockBinding().
551
552 GL_MAX_FRAMEBUFFER_WIDTH
553
554 params returns one value, the maximum width for a framebuffer that
555 has no attachments, which must be at least 16384. See
556 glFramebufferParameter().
557
558 GL_MAX_FRAMEBUFFER_HEIGHT
559
560 params returns one value, the maximum height for a framebuffer that
561 has no attachments, which must be at least 16384. See
562 glFramebufferParameter().
563
564 GL_MAX_FRAMEBUFFER_LAYERS
565
566 params returns one value, the maximum number of layers for a
567 framebuffer that has no attachments, which must be at least 2048.
568 See glFramebufferParameter().
569
570 GL_MAX_FRAMEBUFFER_SAMPLES
571
572 params returns one value, the maximum samples in a framebuffer that
573 has no attachments, which must be at least 4. See
574 glFramebufferParameter().
575
576 GL_MAX_GEOMETRY_ATOMIC_COUNTERS
577
578 params returns a single value, the maximum number of atomic
579 counters available to geometry shaders.
580
581 GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS
582
583 params returns one value, the maximum number of active shader
584 storage blocks that may be accessed by a geometry shader.
585
586 GL_MAX_GEOMETRY_INPUT_COMPONENTS
587
588 params returns one value, the maximum number of components of
589 inputs read by a geometry shader, which must be at least 64.
590
591 GL_MAX_GEOMETRY_OUTPUT_COMPONENTS
592
593 params returns one value, the maximum number of components of
594 outputs written by a geometry shader, which must be at least 128.
595
596 GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS
597
598 params returns one value, the maximum supported texture image units
599 that can be used to access texture maps from the geometry shader.
600 The value must be at least 16. See glActiveTexture().
601
602 GL_MAX_GEOMETRY_UNIFORM_BLOCKS
603
604 params returns one value, the maximum number of uniform blocks per
605 geometry shader. The value must be at least 12. See
606 glUniformBlockBinding().
607
608 GL_MAX_GEOMETRY_UNIFORM_COMPONENTS
609
610 params returns one value, the maximum number of individual
611 floating-point, integer, or boolean values that can be held in
612 uniform variable storage for a geometry shader. The value must be
613 at least 1024. See glUniform().
614
615 GL_MAX_INTEGER_SAMPLES
616
617 params returns one value, the maximum number of samples supported
618 in integer format multisample buffers.
619
620 GL_MIN_MAP_BUFFER_ALIGNMENT
621
622 params returns one value, the minimum alignment in basic machine
623 units of pointers returned fromglMapBuffer() and
624 glMapBufferRange(). This value must be a power of two and must be
625 at least 64.
626
627 GL_MAX_LABEL_LENGTH
628
629 params returns one value, the maximum length of a label that may be
630 assigned to an object. See glObjectLabel() and glObjectPtrLabel().
631
632 GL_MAX_PROGRAM_TEXEL_OFFSET
633
634 params returns one value, the maximum texel offset allowed in a
635 texture lookup, which must be at least 7.
636
637 GL_MIN_PROGRAM_TEXEL_OFFSET
638
639 params returns one value, the minimum texel offset allowed in a
640 texture lookup, which must be at most -8.
641
642 GL_MAX_RECTANGLE_TEXTURE_SIZE
643
644 params returns one value. The value gives a rough estimate of the
645 largest rectangular texture that the GL can handle. The value must
646 be at least 1024. Use GL_PROXY_RECTANGLE_TEXTURE to determine if a
647 texture is too large. See glTexImage2D().
648
649 GL_MAX_RENDERBUFFER_SIZE
650
651 params returns one value. The value indicates the maximum supported
652 size for renderbuffers. See glFramebufferRenderbuffer().
653
654 GL_MAX_SAMPLE_MASK_WORDS
655
656 params returns one value, the maximum number of sample mask words.
657
658 GL_MAX_SERVER_WAIT_TIMEOUT
659
660 params returns one value, the maximum glWaitSync() timeout
661 interval.
662
663 GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS
664
665 params returns one value, the maximum number of shader storage
666 buffer binding points on the context, which must be at least 8.
667
668 GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS
669
670 params returns a single value, the maximum number of atomic
671 counters available to tessellation control shaders.
672
673 GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS
674
675 params returns a single value, the maximum number of atomic
676 counters available to tessellation evaluation shaders.
677
678 GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS
679
680 params returns one value, the maximum number of active shader
681 storage blocks that may be accessed by a tessellation control
682 shader.
683
684 GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS
685
686 params returns one value, the maximum number of active shader
687 storage blocks that may be accessed by a tessellation evaluation
688 shader.
689
690 GL_MAX_TEXTURE_BUFFER_SIZE
691
692 params returns one value. The value gives the maximum number of
693 texels allowed in the texel array of a texture buffer object. Value
694 must be at least 65536.
695
696 GL_MAX_TEXTURE_IMAGE_UNITS
697
698 params returns one value, the maximum supported texture image units
699 that can be used to access texture maps from the fragment shader.
700 The value must be at least 16. See glActiveTexture().
701
702 GL_MAX_TEXTURE_LOD_BIAS
703
704 params returns one value, the maximum, absolute value of the
705 texture level-of-detail bias. The value must be at least 2.0.
706
707 GL_MAX_TEXTURE_SIZE
708
709 params returns one value. The value gives a rough estimate of the
710 largest texture that the GL can handle. The value must be at least
711 1024. Use a proxy texture target such as GL_PROXY_TEXTURE_1D or
712 GL_PROXY_TEXTURE_2D to determine if a texture is too large. See
713 glTexImage1D() and glTexImage2D().
714
715 GL_MAX_UNIFORM_BUFFER_BINDINGS
716
717 params returns one value, the maximum number of uniform buffer
718 binding points on the context, which must be at least 36.
719
720 GL_MAX_UNIFORM_BLOCK_SIZE
721
722 params returns one value, the maximum size in basic machine units
723 of a uniform block, which must be at least 16384.
724
725 GL_MAX_UNIFORM_LOCATIONS
726
727 params returns one value, the maximum number of explicitly
728 assignable uniform locations, which must be at least 1024.
729
730 GL_MAX_VARYING_COMPONENTS
731
732 params returns one value, the number components for varying
733 variables, which must be at least 60.
734
735 GL_MAX_VARYING_VECTORS
736
737 params returns one value, the number 4-vectors for varying
738 variables, which is equal to the value of GL_MAX_VARYING_COMPONENTS
739 and must be at least 15.
740
741 GL_MAX_VARYING_FLOATS
742
743 params returns one value, the maximum number of interpolators
744 available for processing varying variables used by vertex and
745 fragment shaders. This value represents the number of individual
746 floating-point values that can be interpolated; varying variables
747 declared as vectors, matrices, and arrays will all consume multiple
748 interpolators. The value must be at least 32.
749
750 GL_MAX_VERTEX_ATOMIC_COUNTERS
751
752 params returns a single value, the maximum number of atomic
753 counters available to vertex shaders.
754
755 GL_MAX_VERTEX_ATTRIBS
756
757 params returns one value, the maximum number of 4-component generic
758 vertex attributes accessible to a vertex shader. The value must be
759 at least 16. See glVertexAttrib().
760
761 GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS
762
763 params returns one value, the maximum number of active shader
764 storage blocks that may be accessed by a vertex shader.
765
766 GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
767
768 params returns one value, the maximum supported texture image units
769 that can be used to access texture maps from the vertex shader. The
770 value may be at least 16. See glActiveTexture().
771
772 GL_MAX_VERTEX_UNIFORM_COMPONENTS
773
774 params returns one value, the maximum number of individual
775 floating-point, integer, or boolean values that can be held in
776 uniform variable storage for a vertex shader. The value must be at
777 least 1024. See glUniform().
778
779 GL_MAX_VERTEX_UNIFORM_VECTORS
780
781 params returns one value, the maximum number of 4-vectors that may
782 be held in uniform variable storage for the vertex shader. The
783 value of GL_MAX_VERTEX_UNIFORM_VECTORS is equal to the value of
784 GL_MAX_VERTEX_UNIFORM_COMPONENTS and must be at least 256.
785
786 GL_MAX_VERTEX_OUTPUT_COMPONENTS
787
788 params returns one value, the maximum number of components of
789 output written by a vertex shader, which must be at least 64.
790
791 GL_MAX_VERTEX_UNIFORM_BLOCKS
792
793 params returns one value, the maximum number of uniform blocks per
794 vertex shader. The value must be at least 12. See
795 glUniformBlockBinding().
796
797 GL_MAX_VIEWPORT_DIMS
798
799 params returns two values: the maximum supported width and height
800 of the viewport. These must be at least as large as the visible
801 dimensions of the display being rendered to. See glViewport().
802
803 GL_MAX_VIEWPORTS
804
805 params returns one value, the maximum number of simultaneous
806 viewports that are supported. The value must be at least 16. See
807 glViewportIndexed().
808
809 GL_MINOR_VERSION
810
811 params returns one value, the minor version number of the OpenGL
812 API supported by the current context.
813
814 GL_NUM_COMPRESSED_TEXTURE_FORMATS
815
816 params returns a single integer value indicating the number of
817 available compressed texture formats. The minimum value is 4. See
818 glCompressedTexImage2D().
819
820 GL_NUM_EXTENSIONS
821
822 params returns one value, the number of extensions supported by the
823 GL implementation for the current context. See glGetString().
824
825 GL_NUM_PROGRAM_BINARY_FORMATS
826
827 params returns one value, the number of program binary formats
828 supported by the implementation.
829
830 GL_NUM_SHADER_BINARY_FORMATS
831
832 params returns one value, the number of binary shader formats
833 supported by the implementation. If this value is greater than
834 zero, then the implementation supports loading binary shaders. If
835 it is zero, then the loading of binary shaders by the
836 implementation is not supported.
837
838 GL_PACK_ALIGNMENT
839
840 params returns one value, the byte alignment used for writing pixel
841 data to memory. The initial value is 4. See glPixelStore().
842
843 GL_PACK_IMAGE_HEIGHT
844
845 params returns one value, the image height used for writing pixel
846 data to memory. The initial value is 0. See glPixelStore().
847
848 GL_PACK_LSB_FIRST
849
850 params returns a single boolean value indicating whether single-bit
851 pixels being written to memory are written first to the least
852 significant bit of each unsigned byte. The initial value is
853 GL_FALSE. See glPixelStore().
854
855 GL_PACK_ROW_LENGTH
856
857 params returns one value, the row length used for writing pixel
858 data to memory. The initial value is 0. See glPixelStore().
859
860 GL_PACK_SKIP_IMAGES
861
862 params returns one value, the number of pixel images skipped before
863 the first pixel is written into memory. The initial value is 0. See
864 glPixelStore().
865
866 GL_PACK_SKIP_PIXELS
867
868 params returns one value, the number of pixel locations skipped
869 before the first pixel is written into memory. The initial value is
870 0. See glPixelStore().
871
872 GL_PACK_SKIP_ROWS
873
874 params returns one value, the number of rows of pixel locations
875 skipped before the first pixel is written into memory. The initial
876 value is 0. See glPixelStore().
877
878 GL_PACK_SWAP_BYTES
879
880 params returns a single boolean value indicating whether the bytes
881 of two-byte and four-byte pixel indices and components are swapped
882 before being written to memory. The initial value is GL_FALSE. See
883 glPixelStore().
884
885 GL_PIXEL_PACK_BUFFER_BINDING
886
887 params returns a single value, the name of the buffer object
888 currently bound to the target GL_PIXEL_PACK_BUFFER. If no buffer
889 object is bound to this target, 0 is returned. The initial value is
890 0. See glBindBuffer().
891
892 GL_PIXEL_UNPACK_BUFFER_BINDING
893
894 params returns a single value, the name of the buffer object
895 currently bound to the target GL_PIXEL_UNPACK_BUFFER. If no buffer
896 object is bound to this target, 0 is returned. The initial value is
897 0. See glBindBuffer().
898
899 GL_POINT_FADE_THRESHOLD_SIZE
900
901 params returns one value, the point size threshold for determining
902 the point size. See glPointParameter().
903
904 GL_PRIMITIVE_RESTART_INDEX
905
906 params returns one value, the current primitive restart index. The
907 initial value is 0. See glPrimitiveRestartIndex().
908
909 GL_PROGRAM_BINARY_FORMATS
910
911 params an array of GL_NUM_PROGRAM_BINARY_FORMATS values, indicating
912 the proram binary formats supported by the implementation.
913
914 GL_PROGRAM_PIPELINE_BINDING
915
916 params a single value, the name of the currently bound program
917 pipeline object, or zero if no program pipeline object is bound.
918 See glBindProgramPipeline().
919
920 GL_PROVOKING_VERTEX
921
922 params returns one value, the currently selected provoking vertex
923 convention. The initial value is GL_LAST_VERTEX_CONVENTION. See
924 glProvokingVertex().
925
926 GL_POINT_SIZE
927
928 params returns one value, the point size as specified by
929 glPointSize(). The initial value is 1.
930
931 GL_POINT_SIZE_GRANULARITY
932
933 params returns one value, the size difference between adjacent
934 supported sizes for antialiased points. See glPointSize().
935
936 GL_POINT_SIZE_RANGE
937
938 params returns two values: the smallest and largest supported sizes
939 for antialiased points. The smallest size must be at most 1, and
940 the largest size must be at least 1. See glPointSize().
941
942 GL_POLYGON_OFFSET_FACTOR
943
944 params returns one value, the scaling factor used to determine the
945 variable offset that is added to the depth value of each fragment
946 generated when a polygon is rasterized. The initial value is 0. See
947 glPolygonOffset().
948
949 GL_POLYGON_OFFSET_UNITS
950
951 params returns one value. This value is multiplied by an
952 implementation-specific value and then added to the depth value of
953 each fragment generated when a polygon is rasterized. The initial
954 value is 0. See glPolygonOffset().
955
956 GL_POLYGON_OFFSET_FILL
957
958 params returns a single boolean value indicating whether polygon
959 offset is enabled for polygons in fill mode. The initial value is
960 GL_FALSE. See glPolygonOffset().
961
962 GL_POLYGON_OFFSET_LINE
963
964 params returns a single boolean value indicating whether polygon
965 offset is enabled for polygons in line mode. The initial value is
966 GL_FALSE. See glPolygonOffset().
967
968 GL_POLYGON_OFFSET_POINT
969
970 params returns a single boolean value indicating whether polygon
971 offset is enabled for polygons in point mode. The initial value is
972 GL_FALSE. See glPolygonOffset().
973
974 GL_POLYGON_SMOOTH
975
976 params returns a single boolean value indicating whether
977 antialiasing of polygons is enabled. The initial value is GL_FALSE.
978 See glPolygonMode().
979
980 GL_POLYGON_SMOOTH_HINT
981
982 params returns one value, a symbolic constant indicating the mode
983 of the polygon antialiasing hint. The initial value is
984 GL_DONT_CARE. See glHint().
985
986 GL_READ_BUFFER
987
988 params returns one value, a symbolic constant indicating which
989 color buffer is selected for reading. The initial value is GL_BACK
990 if there is a back buffer, otherwise it is GL_FRONT. See
991 glReadPixels().
992
993 GL_RENDERBUFFER_BINDING
994
995 params returns a single value, the name of the renderbuffer object
996 currently bound to the target GL_RENDERBUFFER. If no renderbuffer
997 object is bound to this target, 0 is returned. The initial value is
998 0. See glBindRenderbuffer().
999
1000 GL_SAMPLE_BUFFERS
1001
1002 params returns a single integer value indicating the number of
1003 sample buffers associated with the framebuffer. See
1004 glSampleCoverage().
1005
1006 GL_SAMPLE_COVERAGE_VALUE
1007
1008 params returns a single positive floating-point value indicating
1009 the current sample coverage value. See glSampleCoverage().
1010
1011 GL_SAMPLE_COVERAGE_INVERT
1012
1013 params returns a single boolean value indicating if the temporary
1014 coverage value should be inverted. See glSampleCoverage().
1015
1016 GL_SAMPLER_BINDING
1017
1018 params returns a single value, the name of the sampler object
1019 currently bound to the active texture unit. The initial value is 0.
1020 See glBindSampler().
1021
1022 GL_SAMPLES
1023
1024 params returns a single integer value indicating the coverage mask
1025 size. See glSampleCoverage().
1026
1027 GL_SCISSOR_BOX
1028
1029 params returns four values: the x and y window coordinates of the
1030 scissor box, followed by its width and height. Initially the x and
1031 y window coordinates are both 0 and the width and height are set to
1032 the size of the window. See glScissor().
1033
1034 GL_SCISSOR_TEST
1035
1036 params returns a single boolean value indicating whether scissoring
1037 is enabled. The initial value is GL_FALSE. See glScissor().
1038
1039 GL_SHADER_COMPILER
1040
1041 params returns a single boolean value indicating whether an online
1042 shader compiler is present in the implementation. All desktop
1043 OpenGL implementations must support online shader compilations, and
1044 therefore the value of GL_SHADER_COMPILER will always be GL_TRUE.
1045
1046 GL_SHADER_STORAGE_BUFFER_BINDING
1047
1048 When used with non-indexed variants of glGet (such as
1049 glGetIntegerv), params returns a single value, the name of the
1050 buffer object currently bound to the target
1051 GL_SHADER_STORAGE_BUFFER. If no buffer object is bound to this
1052 target, 0 is returned. When used with indexed variants of glGet
1053 (such as glGetIntegeri_v), params returns a single value, the name
1054 of the buffer object bound to the indexed shader storage buffer
1055 binding points. The initial value is 0 for all targets. See
1056 glBindBuffer(), glBindBufferBase(), and glBindBufferRange().
1057
1058 GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT
1059
1060 params returns a single value, the minimum required alignment for
1061 shader storage buffer sizes and offset. The initial value is 1. See
1062 glShaderStorateBlockBinding().
1063
1064 GL_SHADER_STORAGE_BUFFER_START
1065
1066 When used with indexed variants of glGet (such as
1067 glGetInteger64i_v), params returns a single value, the start offset
1068 of the binding range for each indexed shader storage buffer
1069 binding. The initial value is 0 for all bindings. See
1070 glBindBufferRange().
1071
1072 GL_SHADER_STORAGE_BUFFER_SIZE
1073
1074 When used with indexed variants of glGet (such as
1075 glGetInteger64i_v), params returns a single value, the size of the
1076 binding range for each indexed shader storage buffer binding. The
1077 initial value is 0 for all bindings. See glBindBufferRange().
1078
1079 GL_SMOOTH_LINE_WIDTH_RANGE
1080
1081 params returns a pair of values indicating the range of widths
1082 supported for smooth (antialiased) lines. See glLineWidth().
1083
1084 GL_SMOOTH_LINE_WIDTH_GRANULARITY
1085
1086 params returns a single value indicating the level of quantization
1087 applied to smooth line width parameters.
1088
1089 GL_STENCIL_BACK_FAIL
1090
1091 params returns one value, a symbolic constant indicating what
1092 action is taken for back-facing polygons when the stencil test
1093 fails. The initial value is GL_KEEP. See glStencilOpSeparate().
1094
1095 GL_STENCIL_BACK_FUNC
1096
1097 params returns one value, a symbolic constant indicating what
1098 function is used for back-facing polygons to compare the stencil
1099 reference value with the stencil buffer value. The initial value is
1100 GL_ALWAYS. See glStencilFuncSeparate().
1101
1102 GL_STENCIL_BACK_PASS_DEPTH_FAIL
1103
1104 params returns one value, a symbolic constant indicating what
1105 action is taken for back-facing polygons when the stencil test
1106 passes, but the depth test fails. The initial value is GL_KEEP. See
1107 glStencilOpSeparate().
1108
1109 GL_STENCIL_BACK_PASS_DEPTH_PASS
1110
1111 params returns one value, a symbolic constant indicating what
1112 action is taken for back-facing polygons when the stencil test
1113 passes and the depth test passes. The initial value is GL_KEEP. See
1114 glStencilOpSeparate().
1115
1116 GL_STENCIL_BACK_REF
1117
1118 params returns one value, the reference value that is compared with
1119 the contents of the stencil buffer for back-facing polygons. The
1120 initial value is 0. See glStencilFuncSeparate().
1121
1122 GL_STENCIL_BACK_VALUE_MASK
1123
1124 params returns one value, the mask that is used for back-facing
1125 polygons to mask both the stencil reference value and the stencil
1126 buffer value before they are compared. The initial value is all
1127 1's. See glStencilFuncSeparate().
1128
1129 GL_STENCIL_BACK_WRITEMASK
1130
1131 params returns one value, the mask that controls writing of the
1132 stencil bitplanes for back-facing polygons. The initial value is
1133 all 1's. See glStencilMaskSeparate().
1134
1135 GL_STENCIL_CLEAR_VALUE
1136
1137 params returns one value, the index to which the stencil bitplanes
1138 are cleared. The initial value is 0. See glClearStencil().
1139
1140 GL_STENCIL_FAIL
1141
1142 params returns one value, a symbolic constant indicating what
1143 action is taken when the stencil test fails. The initial value is
1144 GL_KEEP. See glStencilOp(). This stencil state only affects
1145 non-polygons and front-facing polygons. Back-facing polygons use
1146 separate stencil state. See glStencilOpSeparate().
1147
1148 GL_STENCIL_FUNC
1149
1150 params returns one value, a symbolic constant indicating what
1151 function is used to compare the stencil reference value with the
1152 stencil buffer value. The initial value is GL_ALWAYS. See
1153 glStencilFunc(). This stencil state only affects non-polygons and
1154 front-facing polygons. Back-facing polygons use separate stencil
1155 state. See glStencilFuncSeparate().
1156
1157 GL_STENCIL_PASS_DEPTH_FAIL
1158
1159 params returns one value, a symbolic constant indicating what
1160 action is taken when the stencil test passes, but the depth test
1161 fails. The initial value is GL_KEEP. See glStencilOp(). This
1162 stencil state only affects non-polygons and front-facing polygons.
1163 Back-facing polygons use separate stencil state. See
1164 glStencilOpSeparate().
1165
1166 GL_STENCIL_PASS_DEPTH_PASS
1167
1168 params returns one value, a symbolic constant indicating what
1169 action is taken when the stencil test passes and the depth test
1170 passes. The initial value is GL_KEEP. See glStencilOp(). This
1171 stencil state only affects non-polygons and front-facing polygons.
1172 Back-facing polygons use separate stencil state. See
1173 glStencilOpSeparate().
1174
1175 GL_STENCIL_REF
1176
1177 params returns one value, the reference value that is compared with
1178 the contents of the stencil buffer. The initial value is 0. See
1179 glStencilFunc(). This stencil state only affects non-polygons and
1180 front-facing polygons. Back-facing polygons use separate stencil
1181 state. See glStencilFuncSeparate().
1182
1183 GL_STENCIL_TEST
1184
1185 params returns a single boolean value indicating whether stencil
1186 testing of fragments is enabled. The initial value is GL_FALSE. See
1187 glStencilFunc() and glStencilOp().
1188
1189 GL_STENCIL_VALUE_MASK
1190
1191 params returns one value, the mask that is used to mask both the
1192 stencil reference value and the stencil buffer value before they
1193 are compared. The initial value is all 1's. See glStencilFunc().
1194 This stencil state only affects non-polygons and front-facing
1195 polygons. Back-facing polygons use separate stencil state. See
1196 glStencilFuncSeparate().
1197
1198 GL_STENCIL_WRITEMASK
1199
1200 params returns one value, the mask that controls writing of the
1201 stencil bitplanes. The initial value is all 1's. See
1202 glStencilMask(). This stencil state only affects non-polygons and
1203 front-facing polygons. Back-facing polygons use separate stencil
1204 state. See glStencilMaskSeparate().
1205
1206 GL_STEREO
1207
1208 params returns a single boolean value indicating whether stereo
1209 buffers (left and right) are supported.
1210
1211 GL_SUBPIXEL_BITS
1212
1213 params returns one value, an estimate of the number of bits of
1214 subpixel resolution that are used to position rasterized geometry
1215 in window coordinates. The value must be at least 4.
1216
1217 GL_TEXTURE_BINDING_1D
1218
1219 params returns a single value, the name of the texture currently
1220 bound to the target GL_TEXTURE_1D. The initial value is 0. See
1221 glBindTexture().
1222
1223 GL_TEXTURE_BINDING_1D_ARRAY
1224
1225 params returns a single value, the name of the texture currently
1226 bound to the target GL_TEXTURE_1D_ARRAY. The initial value is 0.
1227 See glBindTexture().
1228
1229 GL_TEXTURE_BINDING_2D
1230
1231 params returns a single value, the name of the texture currently
1232 bound to the target GL_TEXTURE_2D. The initial value is 0. See
1233 glBindTexture().
1234
1235 GL_TEXTURE_BINDING_2D_ARRAY
1236
1237 params returns a single value, the name of the texture currently
1238 bound to the target GL_TEXTURE_2D_ARRAY. The initial value is 0.
1239 See glBindTexture().
1240
1241 GL_TEXTURE_BINDING_2D_MULTISAMPLE
1242
1243 params returns a single value, the name of the texture currently
1244 bound to the target GL_TEXTURE_2D_MULTISAMPLE. The initial value is
1245 0. See glBindTexture().
1246
1247 GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
1248
1249 params returns a single value, the name of the texture currently
1250 bound to the target GL_TEXTURE_2D_MULTISAMPLE_ARRAY. The initial
1251 value is 0. See glBindTexture().
1252
1253 GL_TEXTURE_BINDING_3D
1254
1255 params returns a single value, the name of the texture currently
1256 bound to the target GL_TEXTURE_3D. The initial value is 0. See
1257 glBindTexture().
1258
1259 GL_TEXTURE_BINDING_BUFFER
1260
1261 params returns a single value, the name of the texture currently
1262 bound to the target GL_TEXTURE_BUFFER. The initial value is 0. See
1263 glBindTexture().
1264
1265 GL_TEXTURE_BINDING_CUBE_MAP
1266
1267 params returns a single value, the name of the texture currently
1268 bound to the target GL_TEXTURE_CUBE_MAP. The initial value is 0.
1269 See glBindTexture().
1270
1271 GL_TEXTURE_BINDING_RECTANGLE
1272
1273 params returns a single value, the name of the texture currently
1274 bound to the target GL_TEXTURE_RECTANGLE. The initial value is 0.
1275 See glBindTexture().
1276
1277 GL_TEXTURE_COMPRESSION_HINT
1278
1279 params returns a single value indicating the mode of the texture
1280 compression hint. The initial value is GL_DONT_CARE.
1281
1282 GL_TEXTURE_BUFFER_BINDING
1283
1284 params returns a single value, the name of the buffer object
1285 currently bound to the GL_TEXTURE_BUFFER buffer binding point. The
1286 initial value is 0. See glBindBuffer().
1287
1288 GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT
1289
1290 params returns a single value, the minimum required alignment for
1291 texture buffer sizes and offset. The initial value is 1. See
1292 glUniformBlockBinding().
1293
1294 GL_TIMESTAMP
1295
1296 params returns a single value, the 64-bit value of the current GL
1297 time. See glQueryCounter().
1298
1299 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
1300
1301 When used with non-indexed variants of glGet (such as
1302 glGetIntegerv), params returns a single value, the name of the
1303 buffer object currently bound to the target
1304 GL_TRANSFORM_FEEDBACK_BUFFER. If no buffer object is bound to this
1305 target, 0 is returned. When used with indexed variants of glGet
1306 (such as glGetIntegeri_v), params returns a single value, the name
1307 of the buffer object bound to the indexed transform feedback
1308 attribute stream. The initial value is 0 for all targets. See
1309 glBindBuffer(), glBindBufferBase(), and glBindBufferRange().
1310
1311 GL_TRANSFORM_FEEDBACK_BUFFER_START
1312
1313 When used with indexed variants of glGet (such as
1314 glGetInteger64i_v), params returns a single value, the start offset
1315 of the binding range for each transform feedback attribute stream.
1316 The initial value is 0 for all streams. See glBindBufferRange().
1317
1318 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
1319
1320 When used with indexed variants of glGet (such as
1321 glGetInteger64i_v), params returns a single value, the size of the
1322 binding range for each transform feedback attribute stream. The
1323 initial value is 0 for all streams. See glBindBufferRange().
1324
1325 GL_UNIFORM_BUFFER_BINDING
1326
1327 When used with non-indexed variants of glGet (such as
1328 glGetIntegerv), params returns a single value, the name of the
1329 buffer object currently bound to the target GL_UNIFORM_BUFFER. If
1330 no buffer object is bound to this target, 0 is returned. When used
1331 with indexed variants of glGet (such as glGetIntegeri_v), params
1332 returns a single value, the name of the buffer object bound to the
1333 indexed uniform buffer binding point. The initial value is 0 for
1334 all targets. See glBindBuffer(), glBindBufferBase(), and
1335 glBindBufferRange().
1336
1337 GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
1338
1339 params returns a single value, the minimum required alignment for
1340 uniform buffer sizes and offset. The initial value is 1. See
1341 glUniformBlockBinding().
1342
1343 GL_UNIFORM_BUFFER_SIZE
1344
1345 When used with indexed variants of glGet (such as
1346 glGetInteger64i_v), params returns a single value, the size of the
1347 binding range for each indexed uniform buffer binding. The initial
1348 value is 0 for all bindings. See glBindBufferRange().
1349
1350 GL_UNIFORM_BUFFER_START
1351
1352 When used with indexed variants of glGet (such as
1353 glGetInteger64i_v), params returns a single value, the start offset
1354 of the binding range for each indexed uniform buffer binding. The
1355 initial value is 0 for all bindings. See glBindBufferRange().
1356
1357 GL_UNPACK_ALIGNMENT
1358
1359 params returns one value, the byte alignment used for reading pixel
1360 data from memory. The initial value is 4. See glPixelStore().
1361
1362 GL_UNPACK_IMAGE_HEIGHT
1363
1364 params returns one value, the image height used for reading pixel
1365 data from memory. The initial is 0. See glPixelStore().
1366
1367 GL_UNPACK_LSB_FIRST
1368
1369 params returns a single boolean value indicating whether single-bit
1370 pixels being read from memory are read first from the least
1371 significant bit of each unsigned byte. The initial value is
1372 GL_FALSE. See glPixelStore().
1373
1374 GL_UNPACK_ROW_LENGTH
1375
1376 params returns one value, the row length used for reading pixel
1377 data from memory. The initial value is 0. See glPixelStore().
1378
1379 GL_UNPACK_SKIP_IMAGES
1380
1381 params returns one value, the number of pixel images skipped before
1382 the first pixel is read from memory. The initial value is 0. See
1383 glPixelStore().
1384
1385 GL_UNPACK_SKIP_PIXELS
1386
1387 params returns one value, the number of pixel locations skipped
1388 before the first pixel is read from memory. The initial value is 0.
1389 See glPixelStore().
1390
1391 GL_UNPACK_SKIP_ROWS
1392
1393 params returns one value, the number of rows of pixel locations
1394 skipped before the first pixel is read from memory. The initial
1395 value is 0. See glPixelStore().
1396
1397 GL_UNPACK_SWAP_BYTES
1398
1399 params returns a single boolean value indicating whether the bytes
1400 of two-byte and four-byte pixel indices and components are swapped
1401 after being read from memory. The initial value is GL_FALSE. See
1402 glPixelStore().
1403
1404 GL_VERTEX_PROGRAM_POINT_SIZE
1405
1406 params returns a single boolean value indicating whether vertex
1407 program point size mode is enabled. If enabled, and a vertex shader
1408 is active, then the point size is taken from the shader built-in
1409 gl_PointSize. If disabled, and a vertex shader is active, then the
1410 point size is taken from the point state as specified by
1411 glPointSize(). The initial value is GL_FALSE.
1412
1413 GL_VERTEX_BINDING_DIVISOR
1414
1415 Accepted by the indexed forms. params returns a single integer
1416 value representing the instance step divisor of the first element
1417 in the bound buffer's data store for vertex attribute bound to
1418 index.
1419
1420 GL_VERTEX_BINDING_OFFSET
1421
1422 Accepted by the indexed forms. params returns a single integer
1423 value representing the byte offset of the first element in the
1424 bound buffer's data store for vertex attribute bound to index.
1425
1426 GL_VERTEX_BINDING_STRIDE
1427
1428 Accepted by the indexed forms. params returns a single integer
1429 value representing the byte offset between the start of each
1430 element in the bound buffer's data store for vertex attribute bound
1431 to index.
1432
1433 GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET
1434
1435 params returns a single integer value containing the maximum offset
1436 that may be added to a vertex binding offset.
1437
1438 GL_MAX_VERTEX_ATTRIB_BINDINGS
1439
1440 params returns a single integer value containing the maximum number
1441 of vertex buffers that may be bound.
1442
1443 GL_VIEWPORT
1444
1445 When used with non-indexed variants of glGet (such as
1446 glGetIntegerv), params returns four values: the x and y window
1447 coordinates of the viewport, followed by its width and height.
1448 Initially the x and y window coordinates are both set to 0, and the
1449 width and height are set to the width and height of the window into
1450 which the GL will do its rendering. See glViewport(). When used
1451 with indexed variants of glGet (such as glGetIntegeri_v), params
1452 returns four values: the x and y window coordinates of the indexed
1453 viewport, followed by its width and height. Initially the x and y
1454 window coordinates are both set to 0, and the width and height are
1455 set to the width and height of the window into which the GL will do
1456 its rendering. See glViewportIndexedf().
1457
1458 GL_VIEWPORT_BOUNDS_RANGE
1459
1460 params returns two values, the minimum and maximum viewport bounds
1461 range. The minimum range should be at least [-32768, 32767].
1462
1463 GL_VIEWPORT_INDEX_PROVOKING_VERTEX
1464
1465 params returns one value, the implementation dependent specifc
1466 vertex of a primitive that is used to select the viewport index. If
1467 the value returned is equivalent to GL_PROVOKING_VERTEX, then the
1468 vertex selection follows the convention specified by
1469 glProvokingVertex(). If the value returned is equivalent to
1470 GL_FIRST_VERTEX_CONVENTION, then the selection is always taken from
1471 the first vertex in the primitive. If the value returned is
1472 equivalent to GL_LAST_VERTEX_CONVENTION, then the selection is
1473 always taken from the last vertex in the primitive. If the value
1474 returned is equivalent to GL_UNDEFINED_VERTEX, then the selection
1475 is not guaranteed to be taken from any specific vertex in the
1476 primitive.
1477
1478 GL_VIEWPORT_SUBPIXEL_BITS
1479
1480 params returns a single value, the number of bits of sub-pixel
1481 precision which the GL uses to interpret the floating point
1482 viewport bounds. The minimum value is 0.
1483
1484 GL_MAX_ELEMENT_INDEX
1485
1486 params returns a single value, the maximum index that may be
1487 specified during the transfer of generic vertex attributes to the
1488 GL.
1489
1490 Many of the boolean parameters can also be queried more easily using
1491 glIsEnabled().
1492
1494 The following parameters return the associated value for the active
1495 texture unit: GL_TEXTURE_1D, GL_TEXTURE_BINDING_1D, GL_TEXTURE_2D,
1496 GL_TEXTURE_BINDING_2D, GL_TEXTURE_3D and GL_TEXTURE_BINDING_3D.
1497
1498 GL_MAX_VIEWPORTS, GL_VIEWPORT_SUBPIXEL_BITS, GL_VIEWPORT_BOUNDS_RANGE,
1499 GL_LAYER_PROVOKING_VERTEX, and GL_VIEWPORT_INDEX_PROVOKING_VERTEX are
1500 available only if the GL version is 4.1 or greater.
1501
1502 GL_MAX_VERTEX_ATOMIC_COUNTERS, GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS,
1503 GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS,
1504 GL_MAX_GEOMETRY_ATOMIC_COUNTERS, GL_MAX_FRAMGENT_ATOMIC_COUNTERS, and
1505 GL_MIN_MAP_BUFFER_ALIGNMENT are accepted by pname only if the GL
1506 version is 4.2 or greater.
1507
1508 GL_MAX_ELEMENT_INDEX is accepted by pname only if the GL version is 4.3
1509 or greater.
1510
1511 GL_MAX_COMPUTE_UNIFORM_BLOCKS, GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS,
1512 GL_MAX_COMPUTE_UNIFORM_COMPONENTS, GL_MAX_COMPUTE_ATOMIC_COUNTERS,
1513 GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS,
1514 GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS,
1515 GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS, GL_MAX_COMPUTE_WORK_GROUP_COUNT,
1516 and GL_MAX_COMPUTE_WORK_GROUP_SIZE and
1517 GL_DISPATCH_INDIRECT_BUFFER_BINDING are available only if the GL
1518 version is 4.3 or greater.
1519
1520 GL_MAX_DEBUG_GROUP_STACK_DEPTH, GL_DEBUG_GROUP_STACK_DEPTH and
1521 GL_MAX_LABEL_LENGTH are accepted only if the GL version is 4.3 or
1522 greater.
1523
1524 GL_MAX_UNIFORM_LOCATIONS is accepted only if the GL version is 4.3 or
1525 greater.
1526
1527 GL_MAX_FRAMEBUFFER_WIDTH, GL_MAX_FRAMEBUFFER_HEIGHT,
1528 GL_MAX_FRAMEBUFFER_LAYERS, and GL_MAX_FRAMEBUFFER_SAMPLES are available
1529 only if the GL version is 4.3 or greater.
1530
1531 GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS,
1532 GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS,
1533 GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS,
1534 GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS,
1535 GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS, and
1536 GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS are available only if the GL
1537 version is 4.3 or higher.
1538
1539 GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT is available only if the GL version
1540 is 4.3 or greater.
1541
1542 GL_VERTEX_BINDING_DIVISOR, GL_VERTEX_BINDING_OFFSET,
1543 GL_VERTEX_BINDING_STRIDE, GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET and
1544 GL_MAX_VERTEX_ATTRIB_BINDINGS are available only if the GL version is
1545 4.3 or greater.
1546
1548 GL_INVALID_ENUM is generated if pname is not an accepted value.
1549
1550 GL_INVALID_VALUE is generated on any of glGetBooleani_v,
1551 glGetIntegeri_v, or glGetInteger64i_v if index is outside of the valid
1552 range for the indexed state target.
1553
1555 glGetActiveUniform(), glGetAttachedShaders(), glGetAttribLocation(),
1556 glGetBufferParameter(), glGetBufferPointerv(), glGetBufferSubData(),
1557 glGetCompressedTexImage(), glGetError(), glGetProgram(),
1558 glGetProgramInfoLog(), glGetQueryiv(), glGetQueryObject(),
1559 glGetShader(), glGetShaderInfoLog(), glGetShaderSource(),
1560 glGetString(), glGetTexImage(), glGetTexLevelParameter(),
1561 glGetTexParameter(), glGetUniform(), glGetUniformLocation(),
1562 glGetVertexAttrib(), glGetVertexAttribPointerv(), glIsEnabled()
1563
1565 Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2011
1566 Khronos Group. This document is licensed under the SGI Free Software B
1567 License. For details, see http://oss.sgi.com/projects/FreeB/.
1568
1570 opengl.org
1571
1572
1573
1574opengl.org 06/10/2014 GLGET(3G)