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