1GLGET(3G)                       [FIXME: manual]                      GLGET(3G)
2
3
4

NAME

6       glGet - return the value or values of a selected parameter
7

C SPECIFICATION

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

PARAMETERS

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

DESCRIPTION

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_CULL_FACE_MODE
220           data returns a single value indicating the mode of polygon culling.
221           The initial value is GL_BACK. See glCullFace().
222
223       GL_CURRENT_PROGRAM
224           data returns one value, the name of the program object that is
225           currently active, or 0 if no program object is active. See
226           glUseProgram().
227
228       GL_DEPTH_CLEAR_VALUE
229           data returns one value, the value that is used to clear the depth
230           buffer. Integer values, if requested, are linearly mapped from the
231           internal floating-point representation such that 1.0 returns the
232           most positive representable integer value, and -1.0 returns the
233           most negative representable integer value. The initial value is 1.
234           See glClearDepth().
235
236       GL_DEPTH_FUNC
237           data returns one value, the symbolic constant that indicates the
238           depth comparison function. The initial value is GL_LESS. See
239           glDepthFunc().
240
241       GL_DEPTH_RANGE
242           data returns two values: the near and far mapping limits for the
243           depth buffer. Integer values, if requested, are linearly mapped
244           from the internal floating-point representation such that 1.0
245           returns the most positive representable integer value, and -1.0
246           returns the most negative representable integer value. The initial
247           value is (0, 1). See glDepthRange().
248
249       GL_DEPTH_TEST
250           data returns a single boolean value indicating whether depth
251           testing of fragments is enabled. The initial value is GL_FALSE. See
252           glDepthFunc() and glDepthRange().
253
254       GL_DEPTH_WRITEMASK
255           data returns a single boolean value indicating if the depth buffer
256           is enabled for writing. The initial value is GL_TRUE. See
257           glDepthMask().
258
259       GL_DITHER
260           data returns a single boolean value indicating whether dithering of
261           fragment colors and indices is enabled. The initial value is
262           GL_TRUE.
263
264       GL_DOUBLEBUFFER
265           data returns a single boolean value indicating whether double
266           buffering is supported.
267
268       GL_DRAW_BUFFER
269           data returns one value, a symbolic constant indicating which
270           buffers are being drawn to. See glDrawBuffer(). The initial value
271           is GL_BACK if there are back buffers, otherwise it is GL_FRONT.
272
273       GL_DRAW_BUFFERi
274           data returns one value, a symbolic constant indicating which
275           buffers are being drawn to by the corresponding output color. See
276           glDrawBuffers(). The initial value of GL_DRAW_BUFFER0 is GL_BACK if
277           there are back buffers, otherwise it is GL_FRONT. The initial
278           values of draw buffers for all other output colors is GL_NONE.
279
280       GL_DRAW_FRAMEBUFFER_BINDING
281           data returns one value, the name of the framebuffer object
282           currently bound to the GL_DRAW_FRAMEBUFFER target. If the default
283           framebuffer is bound, this value will be zero. The initial value is
284           zero. See glBindFramebuffer().
285
286       GL_READ_FRAMEBUFFER_BINDING
287           data returns one value, the name of the framebuffer object
288           currently bound to the GL_READ_FRAMEBUFFER target. If the default
289           framebuffer is bound, this value will be zero. The initial value is
290           zero. See glBindFramebuffer().
291
292       GL_ELEMENT_ARRAY_BUFFER_BINDING
293           data returns a single value, the name of the buffer object
294           currently bound to the target GL_ELEMENT_ARRAY_BUFFER. If no buffer
295           object is bound to this target, 0 is returned. The initial value is
296           0. See glBindBuffer().
297
298       GL_FRAGMENT_SHADER_DERIVATIVE_HINT
299           data returns one value, a symbolic constant indicating the mode of
300           the derivative accuracy hint for fragment shaders. The initial
301           value is GL_DONT_CARE. See glHint().
302
303       GL_IMPLEMENTATION_COLOR_READ_FORMAT
304           data returns a single GLenum value indicating the implementation's
305           preferred pixel data format. See glReadPixels().
306
307       GL_IMPLEMENTATION_COLOR_READ_TYPE
308           data returns a single GLenum value indicating the implementation's
309           preferred pixel data type. See glReadPixels().
310
311       GL_LINE_SMOOTH
312           data returns a single boolean value indicating whether antialiasing
313           of lines is enabled. The initial value is GL_FALSE. See
314           glLineWidth().
315
316       GL_LINE_SMOOTH_HINT
317           data returns one value, a symbolic constant indicating the mode of
318           the line antialiasing hint. The initial value is GL_DONT_CARE. See
319           glHint().
320
321       GL_LINE_WIDTH
322           data returns one value, the line width as specified with
323           glLineWidth(). The initial value is 1.
324
325       GL_LAYER_PROVOKING_VERTEX
326           data returns one value, the implementation dependent specifc vertex
327           of a primitive that is used to select the rendering layer. If the
328           value returned is equivalent to GL_PROVOKING_VERTEX, then the
329           vertex selection follows the convention specified by
330           glProvokingVertex(). If the value returned is equivalent to
331           GL_FIRST_VERTEX_CONVENTION, then the selection is always taken from
332           the first vertex in the primitive. If the value returned is
333           equivalent to GL_LAST_VERTEX_CONVENTION, then the selection is
334           always taken from the last vertex in the primitive. If the value
335           returned is equivalent to GL_UNDEFINED_VERTEX, then the selection
336           is not guaranteed to be taken from any specific vertex in the
337           primitive.
338
339       GL_LOGIC_OP_MODE
340           data returns one value, a symbolic constant indicating the selected
341           logic operation mode. The initial value is GL_COPY. See
342           glLogicOp().
343
344       GL_MAJOR_VERSION
345           data returns one value, the major version number of the OpenGL API
346           supported by the current context.
347
348       GL_MAX_3D_TEXTURE_SIZE
349           data returns one value, a rough estimate of the largest 3D texture
350           that the GL can handle. The value must be at least 64. Use
351           GL_PROXY_TEXTURE_3D to determine if a texture is too large. See
352           glTexImage3D().
353
354       GL_MAX_ARRAY_TEXTURE_LAYERS
355           data returns one value. The value indicates the maximum number of
356           layers allowed in an array texture, and must be at least 256. See
357           glTexImage2D().
358
359       GL_MAX_CLIP_DISTANCES
360           data returns one value, the maximum number of application-defined
361           clipping distances. The value must be at least 8.
362
363       GL_MAX_COLOR_TEXTURE_SAMPLES
364           data returns one value, the maximum number of samples in a color
365           multisample texture.
366
367       GL_MAX_COMBINED_ATOMIC_COUNTERS
368           data returns a single value, the maximum number of atomic counters
369           available to all active shaders.
370
371       GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
372           data returns one value, the number of words for fragment shader
373           uniform variables in all uniform blocks (including default). The
374           value must be at least 1. See glUniform().
375
376       GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS
377           data returns one value, the number of words for geometry shader
378           uniform variables in all uniform blocks (including default). The
379           value must be at least 1. See glUniform().
380
381       GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
382           data returns one value, the maximum supported texture image units
383           that can be used to access texture maps from the vertex shader and
384           the fragment processor combined. If both the vertex shader and the
385           fragment processing stage access the same texture image unit, then
386           that counts as using two texture image units against this limit.
387           The value must be at least 48. See glActiveTexture().
388
389       GL_MAX_COMBINED_UNIFORM_BLOCKS
390           data returns one value, the maximum number of uniform blocks per
391           program. The value must be at least 70. See
392           glUniformBlockBinding().
393
394       GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
395           data returns one value, the number of words for vertex shader
396           uniform variables in all uniform blocks (including default). The
397           value must be at least 1. See glUniform().
398
399       GL_MAX_CUBE_MAP_TEXTURE_SIZE
400           data returns one value. The value gives a rough estimate of the
401           largest cube-map texture that the GL can handle. The value must be
402           at least 1024. Use GL_PROXY_TEXTURE_CUBE_MAP to determine if a
403           texture is too large. See glTexImage2D().
404
405       GL_MAX_DEPTH_TEXTURE_SAMPLES
406           data returns one value, the maximum number of samples in a
407           multisample depth or depth-stencil texture.
408
409       GL_MAX_DRAW_BUFFERS
410           data returns one value, the maximum number of simultaneous outputs
411           that may be written in a fragment shader. The value must be at
412           least 8. See glDrawBuffers().
413
414       GL_MAX_DUAL_SOURCE_DRAW_BUFFERS
415           data returns one value, the maximum number of active draw buffers
416           when using dual-source blending. The value must be at least 1. See
417           glBlendFunc() and glBlendFuncSeparate().
418
419       GL_MAX_ELEMENTS_INDICES
420           data returns one value, the recommended maximum number of vertex
421           array indices. See glDrawRangeElements().
422
423       GL_MAX_ELEMENTS_VERTICES
424           data returns one value, the recommended maximum number of vertex
425           array vertices. See glDrawRangeElements().
426
427       GL_MAX_FRAGMENT_ATOMIC_COUNTERS
428           data returns a single value, the maximum number of atomic counters
429           available to fragment shaders.
430
431       GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS
432           data returns one value, the maximum number of active shader storage
433           blocks that may be accessed by a fragment shader.
434
435       GL_MAX_FRAGMENT_INPUT_COMPONENTS
436           data returns one value, the maximum number of components of the
437           inputs read by the fragment shader, which must be at least 128.
438
439       GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
440           data returns one value, the maximum number of individual
441           floating-point, integer, or boolean values that can be held in
442           uniform variable storage for a fragment shader. The value must be
443           at least 1024. See glUniform().
444
445       GL_MAX_FRAGMENT_UNIFORM_VECTORS
446           data returns one value, the maximum number of individual 4-vectors
447           of floating-point, integer, or boolean values that can be held in
448           uniform variable storage for a fragment shader. The value is equal
449           to the value of GL_MAX_FRAGMENT_UNIFORM_COMPONENTS divided by 4 and
450           must be at least 256. See glUniform().
451
452       GL_MAX_FRAGMENT_UNIFORM_BLOCKS
453           data returns one value, the maximum number of uniform blocks per
454           fragment shader. The value must be at least 12. See
455           glUniformBlockBinding().
456
457       GL_MAX_FRAMEBUFFER_WIDTH
458           data returns one value, the maximum width for a framebuffer that
459           has no attachments, which must be at least 16384. See
460
461           glFramebufferParameter.
462
463       GL_MAX_FRAMEBUFFER_HEIGHT
464           data returns one value, the maximum height for a framebuffer that
465           has no attachments, which must be at least 16384. See
466
467           glFramebufferParameter.
468
469       GL_MAX_FRAMEBUFFER_LAYERS
470           data returns one value, the maximum number of layers for a
471           framebuffer that has no attachments, which must be at least 2048.
472           See
473
474           glFramebufferParameter.
475
476       GL_MAX_FRAMEBUFFER_SAMPLES
477           data returns one value, the maximum samples in a framebuffer that
478           has no attachments, which must be at least 4. See
479
480           glFramebufferParameter.
481
482       GL_MAX_GEOMETRY_ATOMIC_COUNTERS
483           data returns a single value, the maximum number of atomic counters
484           available to geometry shaders.
485
486       GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS
487           data returns one value, the maximum number of active shader storage
488           blocks that may be accessed by a geometry shader.
489
490       GL_MAX_GEOMETRY_INPUT_COMPONENTS
491           data returns one value, the maximum number of components of inputs
492           read by a geometry shader, which must be at least 64.
493
494       GL_MAX_GEOMETRY_OUTPUT_COMPONENTS
495           data returns one value, the maximum number of components of outputs
496           written by a geometry shader, which must be at least 128.
497
498       GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS
499           data returns one value, the maximum supported texture image units
500           that can be used to access texture maps from the geometry shader.
501           The value must be at least 16. See glActiveTexture().
502
503       GL_MAX_GEOMETRY_UNIFORM_BLOCKS
504           data returns one value, the maximum number of uniform blocks per
505           geometry shader. The value must be at least 12. See
506           glUniformBlockBinding().
507
508       GL_MAX_GEOMETRY_UNIFORM_COMPONENTS
509           data returns one value, the maximum number of individual
510           floating-point, integer, or boolean values that can be held in
511           uniform variable storage for a geometry shader. The value must be
512           at least 1024. See glUniform().
513
514       GL_MAX_INTEGER_SAMPLES
515           data returns one value, the maximum number of samples supported in
516           integer format multisample buffers.
517
518       GL_MIN_MAP_BUFFER_ALIGNMENT
519           data returns one value, the minimum alignment in basic machine
520           units of pointers returned fromglMapBuffer() and
521           glMapBufferRange(). This value must be a power of two and must be
522           at least 64.
523
524       GL_MAX_LABEL_LENGTH
525           data returns one value, the maximum length of a label that may be
526           assigned to an object. See glObjectLabel() and glObjectPtrLabel().
527
528       GL_MAX_PROGRAM_TEXEL_OFFSET
529           data returns one value, the maximum texel offset allowed in a
530           texture lookup, which must be at least 7.
531
532       GL_MIN_PROGRAM_TEXEL_OFFSET
533           data returns one value, the minimum texel offset allowed in a
534           texture lookup, which must be at most -8.
535
536       GL_MAX_RECTANGLE_TEXTURE_SIZE
537           data returns one value. The value gives a rough estimate of the
538           largest rectangular texture that the GL can handle. The value must
539           be at least 1024. Use GL_PROXY_TEXTURE_RECTANGLE to determine if a
540           texture is too large. See glTexImage2D().
541
542       GL_MAX_RENDERBUFFER_SIZE
543           data returns one value. The value indicates the maximum supported
544           size for renderbuffers. See glFramebufferRenderbuffer().
545
546       GL_MAX_SAMPLE_MASK_WORDS
547           data returns one value, the maximum number of sample mask words.
548
549       GL_MAX_SERVER_WAIT_TIMEOUT
550           data returns one value, the maximum glWaitSync() timeout interval.
551
552       GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS
553           data returns one value, the maximum number of shader storage buffer
554           binding points on the context, which must be at least 8.
555
556       GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS
557           data returns a single value, the maximum number of atomic counters
558           available to tessellation control shaders.
559
560       GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS
561           data returns a single value, the maximum number of atomic counters
562           available to tessellation evaluation shaders.
563
564       GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS
565           data returns one value, the maximum number of active shader storage
566           blocks that may be accessed by a tessellation control shader.
567
568       GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS
569           data returns one value, the maximum number of active shader storage
570           blocks that may be accessed by a tessellation evaluation shader.
571
572       GL_MAX_TEXTURE_BUFFER_SIZE
573           data returns one value. The value gives the maximum number of
574           texels allowed in the texel array of a texture buffer object. Value
575           must be at least 65536.
576
577       GL_MAX_TEXTURE_IMAGE_UNITS
578           data returns one value, the maximum supported texture image units
579           that can be used to access texture maps from the fragment shader.
580           The value must be at least 16. See glActiveTexture().
581
582       GL_MAX_TEXTURE_LOD_BIAS
583           data returns one value, the maximum, absolute value of the texture
584           level-of-detail bias. The value must be at least 2.0.
585
586       GL_MAX_TEXTURE_SIZE
587           data returns one value. The value gives a rough estimate of the
588           largest texture that the GL can handle. The value must be at least
589           1024. Use a proxy texture target such as GL_PROXY_TEXTURE_1D or
590           GL_PROXY_TEXTURE_2D to determine if a texture is too large. See
591           glTexImage1D() and glTexImage2D().
592
593       GL_MAX_UNIFORM_BUFFER_BINDINGS
594           data returns one value, the maximum number of uniform buffer
595           binding points on the context, which must be at least 36.
596
597       GL_MAX_UNIFORM_BLOCK_SIZE
598           data returns one value, the maximum size in basic machine units of
599           a uniform block, which must be at least 16384.
600
601       GL_MAX_UNIFORM_LOCATIONS
602           data returns one value, the maximum number of explicitly assignable
603           uniform locations, which must be at least 1024.
604
605       GL_MAX_VARYING_COMPONENTS
606           data returns one value, the number components for varying
607           variables, which must be at least 60.
608
609       GL_MAX_VARYING_VECTORS
610           data returns one value, the number 4-vectors for varying variables,
611           which is equal to the value of GL_MAX_VARYING_COMPONENTS and must
612           be at least 15.
613
614       GL_MAX_VARYING_FLOATS
615           data returns one value, the maximum number of interpolators
616           available for processing varying variables used by vertex and
617           fragment shaders. This value represents the number of individual
618           floating-point values that can be interpolated; varying variables
619           declared as vectors, matrices, and arrays will all consume multiple
620           interpolators. The value must be at least 32.
621
622       GL_MAX_VERTEX_ATOMIC_COUNTERS
623           data returns a single value, the maximum number of atomic counters
624           available to vertex shaders.
625
626       GL_MAX_VERTEX_ATTRIBS
627           data returns one value, the maximum number of 4-component generic
628           vertex attributes accessible to a vertex shader. The value must be
629           at least 16. See glVertexAttrib().
630
631       GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS
632           data returns one value, the maximum number of active shader storage
633           blocks that may be accessed by a vertex shader.
634
635       GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
636           data returns one value, the maximum supported texture image units
637           that can be used to access texture maps from the vertex shader. The
638           value may be at least 16. See glActiveTexture().
639
640       GL_MAX_VERTEX_UNIFORM_COMPONENTS
641           data returns one value, the maximum number of individual
642           floating-point, integer, or boolean values that can be held in
643           uniform variable storage for a vertex shader. The value must be at
644           least 1024. See glUniform().
645
646       GL_MAX_VERTEX_UNIFORM_VECTORS
647           data returns one value, the maximum number of 4-vectors that may be
648           held in uniform variable storage for the vertex shader. The value
649           of GL_MAX_VERTEX_UNIFORM_VECTORS is equal to the value of
650           GL_MAX_VERTEX_UNIFORM_COMPONENTS and must be at least 256.
651
652       GL_MAX_VERTEX_OUTPUT_COMPONENTS
653           data returns one value, the maximum number of components of output
654           written by a vertex shader, which must be at least 64.
655
656       GL_MAX_VERTEX_UNIFORM_BLOCKS
657           data returns one value, the maximum number of uniform blocks per
658           vertex shader. The value must be at least 12. See
659           glUniformBlockBinding().
660
661       GL_MAX_VIEWPORT_DIMS
662           data returns two values: the maximum supported width and height of
663           the viewport. These must be at least as large as the visible
664           dimensions of the display being rendered to. See glViewport().
665
666       GL_MAX_VIEWPORTS
667           data returns one value, the maximum number of simultaneous
668           viewports that are supported. The value must be at least 16. See
669           glViewportIndexed().
670
671       GL_MINOR_VERSION
672           data returns one value, the minor version number of the OpenGL API
673           supported by the current context.
674
675       GL_NUM_COMPRESSED_TEXTURE_FORMATS
676           data returns a single integer value indicating the number of
677           available compressed texture formats. The minimum value is 4. See
678           glCompressedTexImage2D().
679
680       GL_NUM_EXTENSIONS
681           data returns one value, the number of extensions supported by the
682           GL implementation for the current context. See glGetString().
683
684       GL_NUM_PROGRAM_BINARY_FORMATS
685           data returns one value, the number of program binary formats
686           supported by the implementation.
687
688       GL_NUM_SHADER_BINARY_FORMATS
689           data returns one value, the number of binary shader formats
690           supported by the implementation. If this value is greater than
691           zero, then the implementation supports loading binary shaders. If
692           it is zero, then the loading of binary shaders by the
693           implementation is not supported.
694
695       GL_PACK_ALIGNMENT
696           data returns one value, the byte alignment used for writing pixel
697           data to memory. The initial value is 4. See glPixelStore().
698
699       GL_PACK_IMAGE_HEIGHT
700           data returns one value, the image height used for writing pixel
701           data to memory. The initial value is 0. See glPixelStore().
702
703       GL_PACK_LSB_FIRST
704           data returns a single boolean value indicating whether single-bit
705           pixels being written to memory are written first to the least
706           significant bit of each unsigned byte. The initial value is
707           GL_FALSE. See glPixelStore().
708
709       GL_PACK_ROW_LENGTH
710           data returns one value, the row length used for writing pixel data
711           to memory. The initial value is 0. See glPixelStore().
712
713       GL_PACK_SKIP_IMAGES
714           data returns one value, the number of pixel images skipped before
715           the first pixel is written into memory. The initial value is 0. See
716           glPixelStore().
717
718       GL_PACK_SKIP_PIXELS
719           data returns one value, the number of pixel locations skipped
720           before the first pixel is written into memory. The initial value is
721           0. See glPixelStore().
722
723       GL_PACK_SKIP_ROWS
724           data returns one value, the number of rows of pixel locations
725           skipped before the first pixel is written into memory. The initial
726           value is 0. See glPixelStore().
727
728       GL_PACK_SWAP_BYTES
729           data returns a single boolean value indicating whether the bytes of
730           two-byte and four-byte pixel indices and components are swapped
731           before being written to memory. The initial value is GL_FALSE. See
732           glPixelStore().
733
734       GL_PIXEL_PACK_BUFFER_BINDING
735           data returns a single value, the name of the buffer object
736           currently bound to the target GL_PIXEL_PACK_BUFFER. If no buffer
737           object is bound to this target, 0 is returned. The initial value is
738           0. See glBindBuffer().
739
740       GL_PIXEL_UNPACK_BUFFER_BINDING
741           data returns a single value, the name of the buffer object
742           currently bound to the target GL_PIXEL_UNPACK_BUFFER. If no buffer
743           object is bound to this target, 0 is returned. The initial value is
744           0. See glBindBuffer().
745
746       GL_POINT_FADE_THRESHOLD_SIZE
747           data returns one value, the point size threshold for determining
748           the point size. See glPointParameter().
749
750       GL_PRIMITIVE_RESTART_INDEX
751           data returns one value, the current primitive restart index. The
752           initial value is 0. See glPrimitiveRestartIndex().
753
754       GL_PROGRAM_BINARY_FORMATS
755           data an array of GL_NUM_PROGRAM_BINARY_FORMATS values, indicating
756           the proram binary formats supported by the implementation.
757
758       GL_PROGRAM_PIPELINE_BINDING
759           data a single value, the name of the currently bound program
760           pipeline object, or zero if no program pipeline object is bound.
761           See glBindProgramPipeline().
762
763       GL_PROGRAM_POINT_SIZE
764           data returns a single boolean value indicating whether vertex
765           program point size mode is enabled. If enabled, then the point size
766           is taken from the shader built-in gl_PointSize. If disabled, then
767           the point size is taken from the point state as specified by
768           glPointSize(). The initial value is GL_FALSE.
769
770       GL_PROVOKING_VERTEX
771           data returns one value, the currently selected provoking vertex
772           convention. The initial value is GL_LAST_VERTEX_CONVENTION. See
773           glProvokingVertex().
774
775       GL_POINT_SIZE
776           data returns one value, the point size as specified by
777           glPointSize(). The initial value is 1.
778
779       GL_POINT_SIZE_GRANULARITY
780           data returns one value, the size difference between adjacent
781           supported sizes for antialiased points. See glPointSize().
782
783       GL_POINT_SIZE_RANGE
784           data returns two values: the smallest and largest supported sizes
785           for antialiased points. The smallest size must be at most 1, and
786           the largest size must be at least 1. See glPointSize().
787
788       GL_POLYGON_OFFSET_FACTOR
789           data returns one value, the scaling factor used to determine the
790           variable offset that is added to the depth value of each fragment
791           generated when a polygon is rasterized. The initial value is 0. See
792           glPolygonOffset().
793
794       GL_POLYGON_OFFSET_UNITS
795           data returns one value. This value is multiplied by an
796           implementation-specific value and then added to the depth value of
797           each fragment generated when a polygon is rasterized. The initial
798           value is 0. See glPolygonOffset().
799
800       GL_POLYGON_OFFSET_FILL
801           data returns a single boolean value indicating whether polygon
802           offset is enabled for polygons in fill mode. The initial value is
803           GL_FALSE. See glPolygonOffset().
804
805       GL_POLYGON_OFFSET_LINE
806           data returns a single boolean value indicating whether polygon
807           offset is enabled for polygons in line mode. The initial value is
808           GL_FALSE. See glPolygonOffset().
809
810       GL_POLYGON_OFFSET_POINT
811           data returns a single boolean value indicating whether polygon
812           offset is enabled for polygons in point mode. The initial value is
813           GL_FALSE. See glPolygonOffset().
814
815       GL_POLYGON_SMOOTH
816           data returns a single boolean value indicating whether antialiasing
817           of polygons is enabled. The initial value is GL_FALSE. See
818           glPolygonMode().
819
820       GL_POLYGON_SMOOTH_HINT
821           data returns one value, a symbolic constant indicating the mode of
822           the polygon antialiasing hint. The initial value is GL_DONT_CARE.
823           See glHint().
824
825       GL_READ_BUFFER
826           data returns one value, a symbolic constant indicating which color
827           buffer is selected for reading. The initial value is GL_BACK if
828           there is a back buffer, otherwise it is GL_FRONT. See
829           glReadPixels().
830
831       GL_RENDERBUFFER_BINDING
832           data returns a single value, the name of the renderbuffer object
833           currently bound to the target GL_RENDERBUFFER. If no renderbuffer
834           object is bound to this target, 0 is returned. The initial value is
835           0. See glBindRenderbuffer().
836
837       GL_SAMPLE_BUFFERS
838           data returns a single integer value indicating the number of sample
839           buffers associated with the framebuffer. See glSampleCoverage().
840
841       GL_SAMPLE_COVERAGE_VALUE
842           data returns a single positive floating-point value indicating the
843           current sample coverage value. See glSampleCoverage().
844
845       GL_SAMPLE_COVERAGE_INVERT
846           data returns a single boolean value indicating if the temporary
847           coverage value should be inverted. See glSampleCoverage().
848
849       GL_SAMPLER_BINDING
850           data returns a single value, the name of the sampler object
851           currently bound to the active texture unit. The initial value is 0.
852           See glBindSampler().
853
854       GL_SAMPLES
855           data returns a single integer value indicating the coverage mask
856           size. See glSampleCoverage().
857
858       GL_SCISSOR_BOX
859           data returns four values: the x and y window coordinates of the
860           scissor box, followed by its width and height. Initially the x and
861           y window coordinates are both 0 and the width and height are set to
862           the size of the window. See glScissor().
863
864       GL_SCISSOR_TEST
865           data returns a single boolean value indicating whether scissoring
866           is enabled. The initial value is GL_FALSE. See glScissor().
867
868       GL_SHADER_COMPILER
869           data returns a single boolean value indicating whether an online
870           shader compiler is present in the implementation. All desktop
871           OpenGL implementations must support online shader compilations, and
872           therefore the value of GL_SHADER_COMPILER will always be GL_TRUE.
873
874       GL_SHADER_STORAGE_BUFFER_BINDING
875           When used with non-indexed variants of glGet (such as
876           glGetIntegerv), data returns a single value, the name of the buffer
877           object currently bound to the target GL_SHADER_STORAGE_BUFFER. If
878           no buffer object is bound to this target, 0 is returned. When used
879           with indexed variants of glGet (such as glGetIntegeri_v), data
880           returns a single value, the name of the buffer object bound to the
881           indexed shader storage buffer binding points. The initial value is
882           0 for all targets. See glBindBuffer(), glBindBufferBase(), and
883           glBindBufferRange().
884
885       GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT
886           data returns a single value, the minimum required alignment for
887           shader storage buffer sizes and offset. The initial value is 1. See
888           glShaderStorageBlockBinding().
889
890       GL_SHADER_STORAGE_BUFFER_START
891           When used with indexed variants of glGet (such as
892           glGetInteger64i_v), data returns a single value, the start offset
893           of the binding range for each indexed shader storage buffer
894           binding. The initial value is 0 for all bindings. See
895           glBindBufferRange().
896
897       GL_SHADER_STORAGE_BUFFER_SIZE
898           When used with indexed variants of glGet (such as
899           glGetInteger64i_v), data returns a single value, the size of the
900           binding range for each indexed shader storage buffer binding. The
901           initial value is 0 for all bindings. See glBindBufferRange().
902
903       GL_SMOOTH_LINE_WIDTH_RANGE
904           data returns a pair of values indicating the range of widths
905           supported for smooth (antialiased) lines. See glLineWidth().
906
907       GL_SMOOTH_LINE_WIDTH_GRANULARITY
908           data returns a single value indicating the level of quantization
909           applied to smooth line width parameters.
910
911       GL_STENCIL_BACK_FAIL
912           data returns one value, a symbolic constant indicating what action
913           is taken for back-facing polygons when the stencil test fails. The
914           initial value is GL_KEEP. See glStencilOpSeparate().
915
916       GL_STENCIL_BACK_FUNC
917           data returns one value, a symbolic constant indicating what
918           function is used for back-facing polygons to compare the stencil
919           reference value with the stencil buffer value. The initial value is
920           GL_ALWAYS. See glStencilFuncSeparate().
921
922       GL_STENCIL_BACK_PASS_DEPTH_FAIL
923           data returns one value, a symbolic constant indicating what action
924           is taken for back-facing polygons when the stencil test passes, but
925           the depth test fails. The initial value is GL_KEEP. See
926           glStencilOpSeparate().
927
928       GL_STENCIL_BACK_PASS_DEPTH_PASS
929           data returns one value, a symbolic constant indicating what action
930           is taken for back-facing polygons when the stencil test passes and
931           the depth test passes. The initial value is GL_KEEP. See
932           glStencilOpSeparate().
933
934       GL_STENCIL_BACK_REF
935           data returns one value, the reference value that is compared with
936           the contents of the stencil buffer for back-facing polygons. The
937           initial value is 0. See glStencilFuncSeparate().
938
939       GL_STENCIL_BACK_VALUE_MASK
940           data returns one value, the mask that is used for back-facing
941           polygons to mask both the stencil reference value and the stencil
942           buffer value before they are compared. The initial value is all
943           1's. See glStencilFuncSeparate().
944
945       GL_STENCIL_BACK_WRITEMASK
946           data returns one value, the mask that controls writing of the
947           stencil bitplanes for back-facing polygons. The initial value is
948           all 1's. See glStencilMaskSeparate().
949
950       GL_STENCIL_CLEAR_VALUE
951           data returns one value, the index to which the stencil bitplanes
952           are cleared. The initial value is 0. See glClearStencil().
953
954       GL_STENCIL_FAIL
955           data returns one value, a symbolic constant indicating what action
956           is taken when the stencil test fails. The initial value is GL_KEEP.
957           See glStencilOp(). This stencil state only affects non-polygons and
958           front-facing polygons. Back-facing polygons use separate stencil
959           state. See glStencilOpSeparate().
960
961       GL_STENCIL_FUNC
962           data returns one value, a symbolic constant indicating what
963           function is used to compare the stencil reference value with the
964           stencil buffer value. The initial value is GL_ALWAYS. See
965           glStencilFunc(). This stencil state only affects non-polygons and
966           front-facing polygons. Back-facing polygons use separate stencil
967           state. See glStencilFuncSeparate().
968
969       GL_STENCIL_PASS_DEPTH_FAIL
970           data returns one value, a symbolic constant indicating what action
971           is taken when the stencil test passes, but the depth test fails.
972           The initial value is GL_KEEP. See glStencilOp(). This stencil state
973           only affects non-polygons and front-facing polygons. Back-facing
974           polygons use separate stencil state. See glStencilOpSeparate().
975
976       GL_STENCIL_PASS_DEPTH_PASS
977           data returns one value, a symbolic constant indicating what action
978           is taken when the stencil test passes and the depth test passes.
979           The initial value is GL_KEEP. See glStencilOp(). This stencil state
980           only affects non-polygons and front-facing polygons. Back-facing
981           polygons use separate stencil state. See glStencilOpSeparate().
982
983       GL_STENCIL_REF
984           data returns one value, the reference value that is compared with
985           the contents of the stencil buffer. The initial value is 0. See
986           glStencilFunc(). This stencil state only affects non-polygons and
987           front-facing polygons. Back-facing polygons use separate stencil
988           state. See glStencilFuncSeparate().
989
990       GL_STENCIL_TEST
991           data returns a single boolean value indicating whether stencil
992           testing of fragments is enabled. The initial value is GL_FALSE. See
993           glStencilFunc() and glStencilOp().
994
995       GL_STENCIL_VALUE_MASK
996           data returns one value, the mask that is used to mask both the
997           stencil reference value and the stencil buffer value before they
998           are compared. The initial value is all 1's. See glStencilFunc().
999           This stencil state only affects non-polygons and front-facing
1000           polygons. Back-facing polygons use separate stencil state. See
1001           glStencilFuncSeparate().
1002
1003       GL_STENCIL_WRITEMASK
1004           data returns one value, the mask that controls writing of the
1005           stencil bitplanes. The initial value is all 1's. See
1006           glStencilMask(). This stencil state only affects non-polygons and
1007           front-facing polygons. Back-facing polygons use separate stencil
1008           state. See glStencilMaskSeparate().
1009
1010       GL_STEREO
1011           data returns a single boolean value indicating whether stereo
1012           buffers (left and right) are supported.
1013
1014       GL_SUBPIXEL_BITS
1015           data returns one value, an estimate of the number of bits of
1016           subpixel resolution that are used to position rasterized geometry
1017           in window coordinates. The value must be at least 4.
1018
1019       GL_TEXTURE_BINDING_1D
1020           data returns a single value, the name of the texture currently
1021           bound to the target GL_TEXTURE_1D. The initial value is 0. See
1022           glBindTexture().
1023
1024       GL_TEXTURE_BINDING_1D_ARRAY
1025           data returns a single value, the name of the texture currently
1026           bound to the target GL_TEXTURE_1D_ARRAY. The initial value is 0.
1027           See glBindTexture().
1028
1029       GL_TEXTURE_BINDING_2D
1030           data returns a single value, the name of the texture currently
1031           bound to the target GL_TEXTURE_2D. The initial value is 0. See
1032           glBindTexture().
1033
1034       GL_TEXTURE_BINDING_2D_ARRAY
1035           data returns a single value, the name of the texture currently
1036           bound to the target GL_TEXTURE_2D_ARRAY. The initial value is 0.
1037           See glBindTexture().
1038
1039       GL_TEXTURE_BINDING_2D_MULTISAMPLE
1040           data returns a single value, the name of the texture currently
1041           bound to the target GL_TEXTURE_2D_MULTISAMPLE. The initial value is
1042           0. See glBindTexture().
1043
1044       GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
1045           data returns a single value, the name of the texture currently
1046           bound to the target GL_TEXTURE_2D_MULTISAMPLE_ARRAY. The initial
1047           value is 0. See glBindTexture().
1048
1049       GL_TEXTURE_BINDING_3D
1050           data returns a single value, the name of the texture currently
1051           bound to the target GL_TEXTURE_3D. The initial value is 0. See
1052           glBindTexture().
1053
1054       GL_TEXTURE_BINDING_BUFFER
1055           data returns a single value, the name of the texture currently
1056           bound to the target GL_TEXTURE_BUFFER. The initial value is 0. See
1057           glBindTexture().
1058
1059       GL_TEXTURE_BINDING_CUBE_MAP
1060           data returns a single value, the name of the texture currently
1061           bound to the target GL_TEXTURE_CUBE_MAP. The initial value is 0.
1062           See glBindTexture().
1063
1064       GL_TEXTURE_BINDING_RECTANGLE
1065           data returns a single value, the name of the texture currently
1066           bound to the target GL_TEXTURE_RECTANGLE. The initial value is 0.
1067           See glBindTexture().
1068
1069       GL_TEXTURE_COMPRESSION_HINT
1070           data returns a single value indicating the mode of the texture
1071           compression hint. The initial value is GL_DONT_CARE.
1072
1073       GL_TEXTURE_BINDING_BUFFER
1074           data returns a single value, the name of the buffer object
1075           currently bound to the GL_TEXTURE_BUFFER buffer binding point. The
1076           initial value is 0. See glBindBuffer().
1077
1078       GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT
1079           data returns a single value, the minimum required alignment for
1080           texture buffer sizes and offset. The initial value is 1. See
1081           glUniformBlockBinding().
1082
1083       GL_TIMESTAMP
1084           data returns a single value, the 64-bit value of the current GL
1085           time. See glQueryCounter().
1086
1087       GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
1088           When used with non-indexed variants of glGet (such as
1089           glGetIntegerv), data returns a single value, the name of the buffer
1090           object currently bound to the target GL_TRANSFORM_FEEDBACK_BUFFER.
1091           If no buffer object is bound to this target, 0 is returned. When
1092           used with indexed variants of glGet (such as glGetIntegeri_v), data
1093           returns a single value, the name of the buffer object bound to the
1094           indexed transform feedback attribute stream. The initial value is 0
1095           for all targets. See glBindBuffer(), glBindBufferBase(), and
1096           glBindBufferRange().
1097
1098       GL_TRANSFORM_FEEDBACK_BUFFER_START
1099           When used with indexed variants of glGet (such as
1100           glGetInteger64i_v), data returns a single value, the start offset
1101           of the binding range for each transform feedback attribute stream.
1102           The initial value is 0 for all streams. See glBindBufferRange().
1103
1104       GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
1105           When used with indexed variants of glGet (such as
1106           glGetInteger64i_v), data returns a single value, the size of the
1107           binding range for each transform feedback attribute stream. The
1108           initial value is 0 for all streams. See glBindBufferRange().
1109
1110       GL_UNIFORM_BUFFER_BINDING
1111           When used with non-indexed variants of glGet (such as
1112           glGetIntegerv), data returns a single value, the name of the buffer
1113           object currently bound to the target GL_UNIFORM_BUFFER. If no
1114           buffer object is bound to this target, 0 is returned. When used
1115           with indexed variants of glGet (such as glGetIntegeri_v), data
1116           returns a single value, the name of the buffer object bound to the
1117           indexed uniform buffer binding point. The initial value is 0 for
1118           all targets. See glBindBuffer(), glBindBufferBase(), and
1119           glBindBufferRange().
1120
1121       GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
1122           data returns a single value, the minimum required alignment for
1123           uniform buffer sizes and offset. The initial value is 1. See
1124           glUniformBlockBinding().
1125
1126       GL_UNIFORM_BUFFER_SIZE
1127           When used with indexed variants of glGet (such as
1128           glGetInteger64i_v), data returns a single value, the size of the
1129           binding range for each indexed uniform buffer binding. The initial
1130           value is 0 for all bindings. See glBindBufferRange().
1131
1132       GL_UNIFORM_BUFFER_START
1133           When used with indexed variants of glGet (such as
1134           glGetInteger64i_v), data returns a single value, the start offset
1135           of the binding range for each indexed uniform buffer binding. The
1136           initial value is 0 for all bindings. See glBindBufferRange().
1137
1138       GL_UNPACK_ALIGNMENT
1139           data returns one value, the byte alignment used for reading pixel
1140           data from memory. The initial value is 4. See glPixelStore().
1141
1142       GL_UNPACK_IMAGE_HEIGHT
1143           data returns one value, the image height used for reading pixel
1144           data from memory. The initial is 0. See glPixelStore().
1145
1146       GL_UNPACK_LSB_FIRST
1147           data returns a single boolean value indicating whether single-bit
1148           pixels being read from memory are read first from the least
1149           significant bit of each unsigned byte. The initial value is
1150           GL_FALSE. See glPixelStore().
1151
1152       GL_UNPACK_ROW_LENGTH
1153           data returns one value, the row length used for reading pixel data
1154           from memory. The initial value is 0. See glPixelStore().
1155
1156       GL_UNPACK_SKIP_IMAGES
1157           data returns one value, the number of pixel images skipped before
1158           the first pixel is read from memory. The initial value is 0. See
1159           glPixelStore().
1160
1161       GL_UNPACK_SKIP_PIXELS
1162           data returns one value, the number of pixel locations skipped
1163           before the first pixel is read from memory. The initial value is 0.
1164           See glPixelStore().
1165
1166       GL_UNPACK_SKIP_ROWS
1167           data returns one value, the number of rows of pixel locations
1168           skipped before the first pixel is read from memory. The initial
1169           value is 0. See glPixelStore().
1170
1171       GL_UNPACK_SWAP_BYTES
1172           data returns a single boolean value indicating whether the bytes of
1173           two-byte and four-byte pixel indices and components are swapped
1174           after being read from memory. The initial value is GL_FALSE. See
1175           glPixelStore().
1176
1177       GL_VERTEX_ARRAY_BINDING
1178           data returns a single value, the name of the vertex array object
1179           currently bound to the context. If no vertex array object is bound
1180           to the context, 0 is returned. The initial value is 0. See
1181           glBindVertexArray().
1182
1183       GL_VERTEX_BINDING_DIVISOR
1184           Accepted by the indexed forms.  data returns a single integer value
1185           representing the instance step divisor of the first element in the
1186           bound buffer's data store for vertex attribute bound to index.
1187
1188       GL_VERTEX_BINDING_OFFSET
1189           Accepted by the indexed forms.  data returns a single integer value
1190           representing the byte offset of the first element in the bound
1191           buffer's data store for vertex attribute bound to index.
1192
1193       GL_VERTEX_BINDING_STRIDE
1194           Accepted by the indexed forms.  data returns a single integer value
1195           representing the byte offset between the start of each element in
1196           the bound buffer's data store for vertex attribute bound to index.
1197
1198       GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET
1199           data returns a single integer value containing the maximum offset
1200           that may be added to a vertex binding offset.
1201
1202       GL_MAX_VERTEX_ATTRIB_BINDINGS
1203           data returns a single integer value containing the maximum number
1204           of vertex buffers that may be bound.
1205
1206       GL_VIEWPORT
1207           When used with non-indexed variants of glGet (such as
1208           glGetIntegerv), data returns four values: the x and y window
1209           coordinates of the viewport, followed by its width and height.
1210           Initially the x and y window coordinates are both set to 0, and the
1211           width and height are set to the width and height of the window into
1212           which the GL will do its rendering. See glViewport().
1213
1214           When used with indexed variants of glGet (such as glGetIntegeri_v),
1215           data returns four values: the x and y window coordinates of the
1216           indexed viewport, followed by its width and height. Initially the x
1217           and y window coordinates are both set to 0, and the width and
1218           height are set to the width and height of the window into which the
1219           GL will do its rendering. See
1220
1221           glViewportIndexedf.
1222
1223       GL_VIEWPORT_BOUNDS_RANGE
1224           data returns two values, the minimum and maximum viewport bounds
1225           range. The minimum range should be at least [-32768, 32767].
1226
1227       GL_VIEWPORT_INDEX_PROVOKING_VERTEX
1228           data returns one value, the implementation dependent specifc vertex
1229           of a primitive that is used to select the viewport index. If the
1230           value returned is equivalent to GL_PROVOKING_VERTEX, then the
1231           vertex selection follows the convention specified by
1232           glProvokingVertex(). If the value returned is equivalent to
1233           GL_FIRST_VERTEX_CONVENTION, then the selection is always taken from
1234           the first vertex in the primitive. If the value returned is
1235           equivalent to GL_LAST_VERTEX_CONVENTION, then the selection is
1236           always taken from the last vertex in the primitive. If the value
1237           returned is equivalent to GL_UNDEFINED_VERTEX, then the selection
1238           is not guaranteed to be taken from any specific vertex in the
1239           primitive.
1240
1241       GL_VIEWPORT_SUBPIXEL_BITS
1242           data returns a single value, the number of bits of sub-pixel
1243           precision which the GL uses to interpret the floating point
1244           viewport bounds. The minimum value is 0.
1245
1246       GL_MAX_ELEMENT_INDEX
1247           data returns a single value, the maximum index that may be
1248           specified during the transfer of generic vertex attributes to the
1249           GL.
1250
1251       Many of the boolean parameters can also be queried more easily using
1252       glIsEnabled().
1253

NOTES

1255       The following parameters return the associated value for the active
1256       texture unit: GL_TEXTURE_1D, GL_TEXTURE_BINDING_1D, GL_TEXTURE_2D,
1257       GL_TEXTURE_BINDING_2D, GL_TEXTURE_3D and GL_TEXTURE_BINDING_3D.
1258
1259       GL_MAX_VIEWPORTS, GL_VIEWPORT_SUBPIXEL_BITS, GL_VIEWPORT_BOUNDS_RANGE,
1260       GL_LAYER_PROVOKING_VERTEX, and GL_VIEWPORT_INDEX_PROVOKING_VERTEX are
1261       available only if the GL version is 4.1 or greater.
1262
1263       GL_MAX_VERTEX_ATOMIC_COUNTERS, GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS,
1264       GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS,
1265       GL_MAX_GEOMETRY_ATOMIC_COUNTERS, GL_MAX_FRAMGENT_ATOMIC_COUNTERS, and
1266       GL_MIN_MAP_BUFFER_ALIGNMENT are accepted by pname only if the GL
1267       version is 4.2 or greater.
1268
1269       GL_MAX_ELEMENT_INDEX is accepted by pname only if the GL version is 4.3
1270       or greater.
1271
1272       GL_MAX_COMPUTE_UNIFORM_BLOCKS, GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS,
1273       GL_MAX_COMPUTE_UNIFORM_COMPONENTS, GL_MAX_COMPUTE_ATOMIC_COUNTERS,
1274       GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS,
1275       GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS,
1276       GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS, GL_MAX_COMPUTE_WORK_GROUP_COUNT,
1277       and GL_MAX_COMPUTE_WORK_GROUP_SIZE and
1278       GL_DISPATCH_INDIRECT_BUFFER_BINDING are available only if the GL
1279       version is 4.3 or greater.
1280
1281       GL_MAX_DEBUG_GROUP_STACK_DEPTH, GL_DEBUG_GROUP_STACK_DEPTH and
1282       GL_MAX_LABEL_LENGTH are accepted only if the GL version is 4.3 or
1283       greater.
1284
1285       GL_MAX_UNIFORM_LOCATIONS is accepted only if the GL version is 4.3 or
1286       greater.
1287
1288       GL_MAX_FRAMEBUFFER_WIDTH, GL_MAX_FRAMEBUFFER_HEIGHT,
1289       GL_MAX_FRAMEBUFFER_LAYERS, and GL_MAX_FRAMEBUFFER_SAMPLES are available
1290       only if the GL version is 4.3 or greater.
1291
1292       GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS,
1293       GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS,
1294       GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS,
1295       GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS,
1296       GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS, and
1297       GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS are available only if the GL
1298       version is 4.3 or higher.
1299
1300       GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT is available only if the GL version
1301       is 4.3 or greater.
1302
1303       GL_VERTEX_BINDING_DIVISOR, GL_VERTEX_BINDING_OFFSET,
1304       GL_VERTEX_BINDING_STRIDE, GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET and
1305       GL_MAX_VERTEX_ATTRIB_BINDINGS are available only if the GL version is
1306       4.3 or greater.
1307

ERRORS

1309       GL_INVALID_ENUM is generated if pname is not an accepted value.
1310
1311       GL_INVALID_VALUE is generated on any of glGetBooleani_v,
1312       glGetIntegeri_v, or glGetInteger64i_v if index is outside of the valid
1313       range for the indexed state target.
1314

VERSION SUPPORT

1316       ┌──────────────────┬───────────────────────────────────────────────────────────────────────┐
1317       │                  │                OpenGL Version                                         
1318       ├──────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
1319Function          2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
1320/                 │     │     │     │     │     │     │     │     │     │     │     │     │
1321Feature           │     │     │     │     │     │     │     │     │     │     │     │     │
1322Name              │     │     │     │     │     │     │     │     │     │     │     │     │
1323       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1324glGetBooleani_v   │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1325       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1326glGetBooleanv     │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1327       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1328glGetDoublei_v    │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1329       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1330glGetDoublev      │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1331       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1332glGetFloati_v     │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1333       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1334glGetFloatv       │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1335       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1336glGetInteger64i_v │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1337       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1338glGetInteger64v   │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1339       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1340glGetIntegeri_v   │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1341       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
1342glGetIntegerv     │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
1343       └──────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
1344

SEE ALSO

1346       glGetActiveUniform(), glGetAttachedShaders(), glGetAttribLocation(),
1347       glGetBufferParameter(), glGetBufferPointerv(), glGetBufferSubData(),
1348       glGetCompressedTexImage(), glGetError(), glGetProgram(),
1349       glGetProgramInfoLog(), glGetQueryiv(), glGetQueryObject(),
1350       glGetShader(), glGetShaderInfoLog(), glGetShaderSource(),
1351       glGetString(), glGetTexImage(), glGetTexLevelParameter(),
1352       glGetTexParameter(), glGetUniform(), glGetUniformLocation(),
1353       glGetVertexAttrib(), glGetVertexAttribPointerv(), glIsEnabled()
1354
1356       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
1357       Khronos Group. This document is licensed under the SGI Free Software B
1358       License. For details, see http://oss.sgi.com/projects/FreeB/.
1359
1361       Copyright © 1991-2006 Silicon Graphics, Inc.
1362       Copyright © 2010-2014 Khronos Group
1363
1364
1365
1366[FIXME: source]                   03/06/2019                         GLGET(3G)
Impressum