GLGET(3G)

πŸ“¦ version 24.3.3, in opensuse-leap 16.0

✨ NAME ✨

glGetBooleanv, glGetDoublev, glGetFloatv, glGetIntegerv β€” return the value or values of a selected parameter

Okay so this is the GLGET(3G) page, bestie, and it's literally your guide to peeking at GL state values. πŸ’–


πŸŽ€ C SPECIFICATION πŸŽ€

void glGetBooleanv( GLenum pname,
                    GLboolean *params )

πŸŽ€ C SPECIFICATION πŸŽ€

void glGetDoublev( GLenum pname,
                   GLdouble *params )

πŸŽ€ C SPECIFICATION πŸŽ€

void glGetFloatv( GLenum pname,
                  GLfloat *params )

πŸŽ€ C SPECIFICATION πŸŽ€

void glGetIntegerv( GLenum pname,
                    GLint *params )

🌸 PARAMETERS 🌸

  • pname β€” tells GL which parameter value you want back. The symbolic constants in the list below are the accepted ones. ✨
  • params β€” this is where the value or values of the specified parameter get returned. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

These four commands return values for simple state variables in GL. pname is a symbolic constant indicating the state variable to be returned, and params is a pointer to an array of the indicated type in which to place the returned data. No cap. πŸ’…

Type conversion is performed if params has a different type than the state variable value being requested. If glGetBooleanv is called, a floating-point (or integer) value is converted to GL_FALSE if and only if it is 0.0 (or 0). Otherwise, it is converted to GL_TRUE. If glGetIntegerv is called, boolean values are returned as GL_TRUE or GL_FALSE, and most floating-point values are rounded to the nearest integer value. Floating-point colors and normals, however, are returned with a linear mapping that maps 1.0 to the most positive representable integer value, and -1.0 to the most negative representable integer value. If glGetFloatv or glGetDoublev is called, boolean values are returned as GL_TRUE or GL_FALSE, and integer values are converted to floating-point values. 😭 the conversion lore is real, but we move.

The following symbolic constants are accepted by pname, and yes, we are listing every single one:

  • GL_ACCUM_ALPHA_BITS β€” params returns one value, the number of alpha bitplanes in the accumulation buffer. 🌈
  • GL_ACCUM_BLUE_BITS β€” params returns one value, the number of blue bitplanes in the accumulation buffer. πŸ’™
  • GL_ACCUM_CLEAR_VALUE β€” params returns four values: the red, green, blue, and alpha values used to clear the accumulation buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer value. The initial value is (0, 0, 0, 0). See glClearAccum. πŸŽ€
  • GL_ACCUM_GREEN_BITS β€” params returns one value, the number of green bitplanes in the accumulation buffer. πŸ’š
  • GL_ACCUM_RED_BITS β€” params returns one value, the number of red bitplanes in the accumulation buffer. ❀️
  • GL_ACTIVE_TEXTURE_ARB β€” params returns a single value indicating the active multitexture unit. The initial value is GL_TEXTURE0_ARB. See glActiveTextureARB. ✨
  • GL_ALIASED_POINT_SIZE_RANGE β€” params returns two values, the smallest and largest supported sizes for aliased points. 🎯
  • GL_ALIASED_LINE_WIDTH_RANGE β€” params returns two values, the smallest and largest supported widths for aliased lines. πŸ“
  • GL_ALPHA_BIAS β€” params returns one value, the alpha bias factor used during pixel transfers. The initial value is 0. See glPixelTransfer. 🌸
  • GL_ALPHA_BITS β€” params returns one value, the number of alpha bitplanes in each color buffer. πŸŽ€
  • GL_ALPHA_SCALE β€” params returns one value, the alpha scale factor used during pixel transfers. The initial value is 1. See glPixelTransfer. πŸ’…
  • GL_ALPHA_TEST β€” params returns a single boolean value indicating whether alpha testing of fragments is enabled. The initial value is GL_FALSE. See glAlphaFunc. 🫢
  • GL_ALPHA_TEST_FUNC β€” params returns one value, the symbolic name of the alpha test function. The initial value is GL_ALWAYS. See glAlphaFunc. πŸ”₯
  • GL_ALPHA_TEST_REF β€” params returns one value, the reference value for the alpha test. The initial value is 0. See glAlphaFunc. An integer value, if requested, is linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer value. 🌟
  • GL_ATTRIB_STACK_DEPTH β€” params returns one value, the depth of the attribute stack. If the stack is empty, 0 is returned. The initial value is 0. See glPushAttrib. 🧚
  • GL_AUTO_NORMAL β€” params returns a single boolean value indicating whether 2D map evaluation automatically generates surface normals. The initial value is GL_FALSE. See glMap2. πŸ¦‹
  • GL_AUX_BUFFERS β€” params returns one value, the number of auxiliary color buffers. The initial value is 0. 🌈
  • GL_BLEND β€” params returns a single boolean value indicating whether blending is enabled. The initial value is GL_FALSE. See glBlendFunc. πŸ’–
  • GL_BLEND_COLOR β€” params returns four values, the red, green, blue, and alpha values which are the components of the blend color. See glBlendColor. 🎨
  • GL_BLEND_DST β€” params returns one value, the symbolic constant identifying the destination blend function. The initial value is GL_ZERO. See glBlendFunc. ✨
  • GL_BLEND_EQUATION β€” params returns one value, a symbolic constant indicating whether the blend equation is GL_FUNC_ADD, GL_MIN or GL_MAX. See glBlendEquation. πŸ’…
  • GL_BLEND_SRC β€” params returns one value, the symbolic constant identifying the source blend function. The initial value is GL_ONE. See glBlendFunc. 🫢
  • GL_BLUE_BIAS β€” params returns one value, the blue bias factor used during pixel transfers. The initial value is 0. See glPixelTransfer. πŸ’™
  • GL_BLUE_BITS β€” params returns one value, the number of blue bitplanes in each color buffer. πŸ”΅
  • GL_BLUE_SCALE β€” params returns one value, the blue scale factor used during pixel transfers. The initial value is 1. See glPixelTransfer. 🌊
  • GL_CLIENT_ACTIVE_TEXTURE_ARB β€” params returns a single integer value indicating the current client active multitexture unit. The initial value is GL_TEXTURE0_ARB. See glClientActiveTextureARB. ✨
  • GL_CLIENT_ATTRIB_STACK_DEPTH β€” params returns one value indicating the depth of the attribute stack. The initial value is 0. See glPushClientAttrib. πŸŽ€
  • GL_CLIP_PLANEi β€” params returns a single boolean value indicating whether the specified clipping plane is enabled. The initial value is GL_FALSE. See glClipPlane. βœ‚οΈ
  • GL_COLOR_ARRAY β€” params returns a single boolean value indicating whether the color array is enabled. The initial value is GL_FALSE. See glColorPointer. 🌈
  • GL_COLOR_ARRAY_SIZE β€” params returns one value, the number of components per color in the color array. The initial value is 4. See glColorPointer. 🎨
  • GL_COLOR_ARRAY_STRIDE β€” params returns one value, the byte offset between consecutive colors in the color array. The initial value is 0. See glColorPointer. πŸ“
  • GL_COLOR_ARRAY_TYPE β€” params returns one value, the data type of each component in the color array. The initial value is GL_FLOAT. See glColorPointer. πŸ’…
  • GL_COLOR_CLEAR_VALUE β€” params returns four values: the red, green, blue, and alpha values used to clear the color buffers. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer value. The initial value is (0, 0, 0, 0). See glClearColor. πŸŽ€
  • GL_COLOR_LOGIC_OP β€” params returns a single boolean value indicating whether a fragment's RGBA color values are merged into the framebuffer using a logical operation. The initial value is GL_FALSE. See glLogicOp. 🧠
  • GL_COLOR_MATERIAL β€” params returns a single boolean value indicating whether one or more material parameters are tracking the current color. The initial value is GL_FALSE. See glColorMaterial. 🎨
  • GL_COLOR_MATERIAL_FACE β€” params returns one value, a symbolic constant indicating which materials have a parameter that is tracking the current color. The initial value is GL_FRONT_AND_BACK. See glColorMaterial. 🫢
  • GL_COLOR_MATERIAL_PARAMETER β€” params gives you one value, a symbolic constant saying which material parameters are currently tracking the current color. The initial value is GL_AMBIENT_AND_DIFFUSE. See glColorMaterial. ✨
  • GL_COLOR_MATRIX β€” params gives you sixteen values: the color matrix sitting on top of the color matrix stack. Initially this matrix is the identity matrix. See glPushMatrix. πŸŽ€
  • GL_COLOR_MATRIX_STACK_DEPTH β€” params gives you one value, the maximum supported depth of the projection matrix stack. The value must be at least 2. See glPushMatrix. (yes bestie, we're all side-eyeing that wording β€” that's literally what the page says, not me πŸ™ˆ)
  • GL_COLOR_TABLE β€” params gives you a single boolean value telling you whether the color table lookup is enabled. See glColorTable. 🌈
  • GL_COLOR_WRITEMASK β€” params gives you four boolean values: the red, green, blue, and alpha write enables for the color buffers. The initial value is (GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE). See glColorMask. πŸ’…
  • GL_CONVOLUTION_1D β€” params gives you a single boolean value telling you whether 1D convolution is enabled. The initial value is GL_FALSE. See glConvolutionFilter1D.
  • GL_CONVOLUTION_2D β€” params gives you a single boolean value telling you whether 2D convolution is enabled. The initial value is GL_FALSE. See glConvolutionFilter2D.
  • GL_CULL_FACE β€” params gives you a single boolean value telling you whether polygon culling is enabled. The initial value is GL_FALSE. See glCullFace.
  • GL_CULL_FACE_MODE β€” params gives you one value, a symbolic constant telling you which polygon faces are the ones getting culled. The initial value is GL_BACK. See glCullFace. πŸ”₯
  • GL_CURRENT_COLOR β€” params gives you four values: the red, green, blue, and alpha of the current color. If you ask for integer values, they get linearly mapped from the internal floating-point representation so that 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. See glColor. The initial value is (1, 1, 1, 1). πŸ’–
  • GL_CURRENT_INDEX β€” params gives you one value, the current color index. The initial value is 1. See glIndex.
  • GL_CURRENT_NORMAL β€” params gives you three values: the x, y, and z of the current normal. Integer values, if you request them, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. The initial value is (0, 0, 1). See glNormal.
  • GL_CURRENT_RASTER_COLOR β€” params gives you four values: the red, green, blue, and alpha values of the current raster position. Ask for integers and they're linearly mapped from the internal floating-point representation, so 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. The initial value is (1, 1, 1, 1). See glRasterPos. ⭐
  • GL_CURRENT_RASTER_DISTANCE β€” params gives you one value, the distance from the eye to the current raster position. The initial value is 0. See glRasterPos.
  • GL_CURRENT_RASTER_INDEX β€” params gives you one value, the color index of the current raster position. The initial value is 1. See glRasterPos.
  • GL_CURRENT_RASTER_POSITION β€” params gives you four values: the x, y, z, and w components of the current raster position. x, y, and z are in window coordinates, and w is in clip coordinates. The initial value is (0, 0, 0, 1). See glRasterPos. πŸ¦‹
  • GL_CURRENT_RASTER_POSITION_VALID β€” params gives you a single boolean value telling you whether the current raster position is valid. The initial value is GL_TRUE. See glRasterPos.
  • GL_CURRENT_RASTER_TEXTURE_COORDS β€” params gives you four values: the s, t, r, and q current raster texture coordinates. The initial value is (0, 0, 0, 1). See glRasterPos and glTexCoord.
  • GL_CURRENT_TEXTURE_COORDS β€” params gives you four values: the s, t, r, and q current texture coordinates. The initial value is (0, 0, 0, 1). See glTexCoord. 🌸
  • GL_DEPTH_BIAS β€” params gives you one value, the depth bias factor used during pixel transfers. The initial value is 0. See glPixelTransfer.
  • GL_DEPTH_BITS β€” params gives you one value, the number of bitplanes in the depth buffer. (no initial value listed, no follow-up reference β€” it's giving minimal icon energy πŸ’€)
  • GL_DEPTH_CLEAR_VALUE β€” params gives you one value, the value used to clear the depth buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. The initial value is 1. See glClearDepth.
  • GL_DEPTH_FUNC β€” params gives you one value, the symbolic constant indicating the depth comparison function. The initial value is GL_LESS. See glDepthFunc.
  • GL_DEPTH_RANGE β€” params gives you two values: the near and far mapping limits for the depth buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. The initial value is (0, 1). See glDepthRange. 🫢
  • GL_DEPTH_SCALE β€” params gives you one value, the depth scale factor used during pixel transfers. The initial value is 1. See glPixelTransfer.
  • GL_DEPTH_TEST β€” params gives you a single boolean value telling you whether depth testing of fragments is enabled. The initial value is GL_FALSE. See glDepthFunc and glDepthRange.
  • GL_DEPTH_WRITEMASK β€” params gives you a single boolean value telling you if the depth buffer is enabled for writing. The initial value is GL_TRUE. See glDepthMask. πŸ‘‘
  • GL_DITHER β€” params gives you a single boolean value telling you whether dithering of fragment colors and indices is enabled. The initial value is GL_TRUE.
  • GL_DOUBLEBUFFER β€” params gives you a single boolean value telling you whether double buffering is supported. πŸŽ€
  • GL_DRAW_BUFFER β€” params gives you one value, a symbolic constant indicating which buffers are being drawn to. See glDrawBuffer. The initial value is GL_BACK if there are back buffers, otherwise it is GL_FRONT.
  • GL_EDGE_FLAG β€” params gives you a single boolean value telling you whether the current edge flag is GL_TRUE or GL_FALSE. The initial value is GL_TRUE. See glEdgeFlag.
  • GL_EDGE_FLAG_ARRAY β€” params gives you a single boolean value telling you whether the edge flag array is enabled. The initial value is GL_FALSE. See glEdgeFlagPointer.
  • GL_EDGE_FLAG_ARRAY_STRIDE β€” params gives you one value, the byte offset between consecutive edge flags in the edge flag array. The initial value is 0. See glEdgeFlagPointer. 🌿
  • GL_FEEDBACK_BUFFER_SIZE β€” params gives you one value, the size of the feedback buffer. See glFeedbackBuffer.
  • GL_FEEDBACK_BUFFER_TYPE β€” params gives you one value, the type of the feedback buffer. See glFeedbackBuffer.
  • GL_FOG β€” params gives you a single boolean value telling you whether fogging is enabled. The initial value is GL_FALSE. See glFog. 🌫️
  • GL_FOG_COLOR β€” params gives you four values: the red, green, blue, and alpha components of the fog color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value and -1.0 returns the most negative representable integer value. The initial value is (0, 0, 0, 0). See glFog.
  • GL_FOG_DENSITY β€” params gives you one value, the fog density parameter. The initial value is 1. See glFog. πŸ’œ
  • GL_FOG_END β€” params returns one value, the end factor for the linear fog equation. Initial value is 1. See glFog. 🌫️
  • GL_FOG_HINT β€” params returns one value, a symbolic constant telling you the mode of the fog hint. Initial value is GL_DONT_CARE. See glHint.
  • GL_FOG_INDEX β€” params returns one value, the fog color index. Initial value is 0. See glFog.
  • GL_FOG_MODE β€” params returns one value, a symbolic constant saying which fog equation got picked. Initial value is GL_EXP. See glFog.
  • GL_FOG_START β€” params returns one value, the start factor for the linear fog equation. Initial value is 0. See glFog.
  • GL_FRONT_FACE β€” params returns one value, a symbolic constant saying whether clockwise or counterclockwise polygon winding counts as front-facing. Initial value is GL_CCW. See glFrontFace.
  • GL_GREEN_BIAS β€” params returns one value, the green bias factor used during pixel transfers. Initial value is 0. πŸ’š
  • GL_GREEN_BITS β€” params returns one value, the number of green bitplanes in each color buffer.
  • GL_GREEN_SCALE β€” params returns one value, the green scale factor used during pixel transfers. Initial value is 1. See glPixelTransfer.
  • GL_HISTOGRAM β€” params returns a single boolean value saying whether histogram is enabled. Initial value is GL_FALSE. See glHistogram.
  • GL_INDEX_ARRAY β€” params returns a single boolean value saying whether the color index array is enabled. Initial value is GL_FALSE. See glIndexPointer.
  • GL_INDEX_ARRAY_STRIDE β€” params returns one value, the byte offset between consecutive color indexes in the color index array. Initial value is 0. See glIndexPointer.
  • GL_INDEX_ARRAY_TYPE β€” params returns one value, the data type of indexes in the color index array. Initial value is GL_FLOAT. See glIndexPointer.
  • GL_INDEX_BITS β€” params returns one value, the number of bitplanes in each color index buffer.
  • GL_INDEX_CLEAR_VALUE β€” params returns one value, the color index used to clear the color index buffers. Initial value is 0. See glClearIndex.
  • GL_INDEX_LOGIC_OP β€” params returns a single boolean value saying whether a fragment's index values get merged into the framebuffer using a logical operation. Initial value is GL_FALSE. See glLogicOp.
  • GL_INDEX_MODE β€” params returns a single boolean value saying whether the GL is in color index mode (GL_TRUE) or RGBA mode (GL_FALSE). 🎨
  • GL_INDEX_OFFSET β€” params returns one value, the offset added to color and stencil indices during pixel transfers. Initial value is 0. See glPixelTransfer.
  • GL_INDEX_SHIFT β€” params returns one value, the amount that color and stencil indices are shifted during pixel transfers. Initial value is 0. See glPixelTransfer.
  • GL_INDEX_WRITEMASK β€” params returns one value, a mask indicating which bitplanes of each color index buffer can be written. Initial value is all 1's. See glIndexMask.
  • GL_LIGHTi β€” params returns a single boolean value saying whether the specified light is enabled. Initial value is GL_FALSE. See glLight and glLightModel. πŸ’‘
  • GL_LIGHTING β€” params returns a single boolean value saying whether lighting is enabled. Initial value is GL_FALSE. See glLightModel.
  • GL_LIGHT_MODEL_AMBIENT β€” params returns four values: the red, green, blue, and alpha components of the ambient intensity of the entire scene. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer value. Initial value is (0.2, 0.2, 0.2, 1.0). See glLightModel.
  • GL_LIGHT_MODEL_COLOR_CONTROL β€” params returns single enumerated value indicating whether specular reflection calculations are separated from normal lighting computations. Initial value is GL_SINGLE_COLOR.
  • GL_LIGHT_MODEL_LOCAL_VIEWER β€” params returns a single boolean value indicating whether specular reflection calculations treat the viewer as being local to the scene. Initial value is GL_FALSE. See glLightModel.
  • GL_LIGHT_MODEL_TWO_SIDE β€” params returns a single boolean value indicating whether separate materials are used to compute lighting for front- and back-facing polygons. Initial value is GL_FALSE. See glLightModel.
  • GL_LINE_SMOOTH β€” params returns a single boolean value indicating whether antialiasing of lines is enabled. Initial value is GL_FALSE. See glLineWidth.
  • GL_LINE_SMOOTH_HINT β€” params returns one value, a symbolic constant indicating the mode of the line antialiasing hint. Initial value is GL_DONT_CARE. See glHint.
  • GL_LINE_STIPPLE β€” params returns a single boolean value indicating whether stippling of lines is enabled. Initial value is GL_FALSE. See glLineStipple.
  • GL_LINE_STIPPLE_PATTERN β€” params returns one value, the 16-bit line stipple pattern. Initial value is all 1's. See glLineStipple.
  • GL_LINE_STIPPLE_REPEAT β€” params returns one value, the line stipple repeat factor. Initial value is 1. See glLineStipple.
  • GL_LINE_WIDTH β€” params returns one value, the line width as specified with glLineWidth. Initial value is 1.
  • GL_LINE_WIDTH_GRANULARITY β€” params returns one value, the width difference between adjacent supported widths for antialiased lines. See glLineWidth.
  • GL_LINE_WIDTH_RANGE β€” params returns two values: the smallest and largest supported widths for antialiased lines. See glLineWidth.
  • GL_LIST_BASE β€” params returns one value, the base offset added to all names in arrays presented to glCallLists. Initial value is 0. See glListBase.
  • GL_LIST_INDEX β€” params returns one value, the name of the display list currently under construction. 0 is returned if no display list is currently under construction. Initial value is 0. See glNewList.
  • GL_LIST_MODE β€” params returns one value, a symbolic constant indicating the construction mode of the display list currently under construction. Initial value is 0. See glNewList.
  • GL_LOGIC_OP_MODE β€” params returns one value, a symbolic constant indicating the selected logic operation mode. Initial value is GL_COPY. See glLogicOp.
  • GL_MAP1_COLOR_4 β€” params returns a single boolean value indicating whether 1D evaluation generates colors. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_GRID_DOMAIN β€” params returns two values: the endpoints of the 1D map's grid domain. Initial value is (0, 1). See glMapGrid.
  • GL_MAP1_GRID_SEGMENTS β€” params returns one value, the number of partitions in the 1D map's grid domain. Initial value is 1. See glMapGrid.
  • GL_MAP1_INDEX β€” params returns a single boolean value indicating whether 1D evaluation generates color indices. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_NORMAL β€” params returns a single boolean value indicating whether 1D evaluation generates normals. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_TEXTURE_COORD_1 β€” params returns a single boolean value indicating whether 1D evaluation generates 1D texture coordinates. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_TEXTURE_COORD_2 β€” params returns a single boolean value indicating whether 1D evaluation generates 2D texture coordinates. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_TEXTURE_COORD_3 β€” params gets a single boolean back, and it tells you whether your 1D evaluation is generating 3D texture coordinates. Starts out as GL_FALSE. Go peek at glMap1. ✨
  • GL_MAP1_TEXTURE_COORD_4 β€” same deal, single boolean, but this one's about whether 1D evaluation spits out 4D texture coordinates. Initial value GL_FALSE. glMap1 has the lore. πŸŽ€
  • GL_MAP1_VERTEX_3 β€” single boolean, indicating whether 1D evaluation generates 3D vertex coordinates. Initial value is GL_FALSE. See glMap1.
  • GL_MAP1_VERTEX_4 β€” single boolean, indicating whether 1D evaluation generates 4D vertex coordinates. Initial value is GL_FALSE. See glMap1.
  • GL_MAP2_COLOR_4 β€” single boolean, indicating whether 2D evaluation generates colors. Initial value GL_FALSE. See glMap2. 🌸
  • GL_MAP2_GRID_DOMAIN β€” params gets four values back: the endpoints of the 2D map's i and j grid domains. Initial value is (0,1; 0,1). See glMapGrid. πŸ¦‹
  • GL_MAP2_GRID_SEGMENTS β€” two values this time: how many partitions live in the 2D map's i and j grid domains. Initial value (1,1). See glMapGrid.
  • GL_MAP2_INDEX β€” single boolean, indicating whether 2D evaluation generates color indices. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_NORMAL β€” single boolean, indicating whether 2D evaluation generates normals. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_TEXTURE_COORD_1 β€” single boolean, indicating whether 2D evaluation generates 1D texture coordinates. Initial value GL_FALSE. See glMap2. πŸ’…
  • GL_MAP2_TEXTURE_COORD_2 β€” single boolean, indicating whether 2D evaluation generates 2D texture coordinates. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_TEXTURE_COORD_3 β€” single boolean, indicating whether 2D evaluation generates 3D texture coordinates. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_TEXTURE_COORD_4 β€” single boolean, indicating whether 2D evaluation generates 4D texture coordinates. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_VERTEX_3 β€” single boolean, indicating whether 2D evaluation generates 3D vertex coordinates. Initial value GL_FALSE. See glMap2.
  • GL_MAP2_VERTEX_4 β€” single boolean, indicating whether 2D evaluation generates 4D vertex coordinates. Initial value GL_FALSE. See glMap2. 🌈
  • GL_MAP_COLOR β€” single boolean, indicating if colors and color indices are to be replaced by table lookup during pixel transfers. Initial value GL_FALSE. See glPixelTransfer. πŸ‘‘
  • GL_MAP_STENCIL β€” single boolean, indicating if stencil indices are to be replaced by table lookup during pixel transfers. Initial value GL_FALSE. See glPixelTransfer.
  • GL_MATRIX_MODE β€” one value, a symbolic constant telling you which matrix stack is currently the target of all matrix operations. Initial value is GL_MODELVIEW. See glMatrixMode. πŸ’€
  • GL_MAX_3D_TEXTURE_SIZE β€” one value, a rough estimate of the largest 3D texture the GL can handle. If your GL version is 1.2 or greater, use GL_PROXY_TEXTURE_3D to find out if a texture is too large. See glTexImage3D. πŸ”₯
  • GL_MAX_CLIENT_ATTRIB_STACK_DEPTH β€” one value, indicating the maximum supported depth of the client attribute stack. See glPushClientAttrib.
  • GL_MAX_ATTRIB_STACK_DEPTH β€” one value, the maximum supported depth of the attribute stack. The value must be at least 16. See glPushAttrib. ✨
  • GL_MAX_CLIP_PLANES β€” one value, the maximum number of application-defined clipping planes. The value must be at least 6. See glClipPlane.
  • GL_MAX_COLOR_MATRIX_STACK_DEPTH β€” one value, the maximum supported depth of the color matrix stack. The value must be at least 2. See glPushMatrix.
  • GL_MAX_ELEMENTS_INDICES β€” one value, the recommended maximum number of vertex array indices. See glDrawRangeElements. 🫢
  • GL_MAX_ELEMENTS_VERTICES β€” one value, the recommended maximum number of vertex array vertices. See glDrawRangeElements.
  • GL_MAX_EVAL_ORDER β€” one value, the maximum equation order supported by 1D and 2D evaluators. The value must be at least 8. See glMap1 and glMap2. 🌸
  • GL_MAX_LIGHTS β€” one value, the maximum number of lights. The value must be at least 8. See glLight.
  • GL_MAX_LIST_NESTING β€” one value, the maximum recursion depth allowed during display-list traversal. The value must be at least 64. See glCallList. 😭
  • GL_MAX_MODELVIEW_STACK_DEPTH β€” one value, the maximum supported depth of the modelview matrix stack. The value must be at least 32. See glPushMatrix.
  • GL_MAX_NAME_STACK_DEPTH β€” one value, the maximum supported depth of the selection name stack. The value must be at least 64. See glPushName.
  • GL_MAX_PIXEL_MAP_TABLE β€” one value, the maximum supported size of a glPixelMap lookup table. The value must be at least 32. See glPixelMap. πŸ“
  • GL_MAX_PROJECTION_STACK_DEPTH β€” one value, the maximum supported depth of the projection matrix stack. The value must be at least 2. See glPushMatrix.
  • GL_MAX_TEXTURE_SIZE β€” one value. The value gives a rough estimate of the largest texture the GL can handle. If your GL version is 1.1 or greater, use GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D to find out if a texture is too large. See glTexImage1D and glTexImage2D. πŸ’œ
  • GL_MAX_TEXTURE_STACK_DEPTH β€” one value, the maximum supported depth of the texture matrix stack. The value must be at least 2. See glPushMatrix.
  • GL_MAX_TEXTURE_UNITS_ARB β€” a single value indicating the number of texture units supported. The value must be at least 1. See glActiveTextureARB. 🧚
  • GL_MAX_VIEWPORT_DIMS β€” two values: the maximum supported width and height of the viewport. These must be at least as large as the visible dimensions of the display being rendered to. See glViewport.
  • GL_MINMAX β€” a single boolean value, indicating whether pixel minmax values are computed. Initial value is GL_FALSE. See glMinmax.
  • GL_MODELVIEW_MATRIX β€” sixteen values: the modelview matrix sitting on top of the modelview matrix stack. Initially this matrix is the identity matrix. See glPushMatrix. πŸ‘‘
  • GL_MODELVIEW_STACK_DEPTH β€” one value, the number of matrices on the modelview matrix stack. Initial value is 1. See glPushMatrix.
  • GL_NAME_STACK_DEPTH β€” one value, the number of names on the selection name stack. Initial value is 0. See glPushName. ✨
  • GL_NORMAL_ARRAY β€” a single boolean value, indicating whether the normal array is enabled. Initial value is GL_FALSE. See glNormalPointer.
  • GL_NORMAL_ARRAY_STRIDE β€” one value, the byte offset between consecutive normals in the normal array. Initial value is 0. See glNormalPointer. πŸ¦‹
  • GL_NORMAL_ARRAY_TYPE β€” one value, the data type of each coordinate in the normal array. Initial value is GL_FLOAT. See glNormalPointer. πŸ’…
  • GL_NORMALIZE β€” params returns a single boolean value, and it's telling you whether normals get automatically scaled to unit length after they've been transformed into eye coordinates πŸ‘€. The initial value is GL_FALSE. See glNormal.
  • GL_PACK_ALIGNMENT β€” params returns one value: the byte alignment used when writing pixel data to memory. The initial value is 4. See glPixelStore.
  • GL_PACK_IMAGE_HEIGHT β€” params returns one value, the image height used for writing pixel data to memory. Initial value? 0. See glPixelStore.
  • GL_PACK_LSB_FIRST β€” params returns a single boolean value, indicating whether single-bit pixels being written to memory are written first to the least significant bit of each unsigned byte 🧠✨. The initial value is GL_FALSE. See glPixelStore.
  • GL_PACK_ROW_LENGTH β€” params returns one value, the row length used for writing pixel data to memory. Initial value is 0. See glPixelStore.
  • GL_PACK_SKIP_IMAGES β€” params returns one value, the number of pixel images skipped before the first pixel is written into memory. The initial value is 0. See glPixelStore.
  • GL_PACK_SKIP_PIXELS β€” params returns one value, the number of pixel locations skipped before the first pixel is written into memory. The initial value is 0. See glPixelStore.
  • GL_PACK_SKIP_ROWS β€” params returns one value, the number of rows of pixel locations skipped before the first pixel is written into memory. The initial value is 0. See glPixelStore.
  • GL_PACK_SWAP_BYTES β€” params returns a single boolean value indicating whether the bytes of two-byte and four-byte pixel indices and components are swapped before being written to memory πŸ”„. The initial value is GL_FALSE. See glPixelStore.
  • GL_PERSPECTIVE_CORRECTION_HINT β€” params returns one value, a symbolic constant indicating the mode of the perspective correction hint. The initial value is GL_DONT_CARE. See glHint.
  • GL_PIXEL_MAP_A_TO_A_SIZE β€” params returns one value, the size of the alpha-to-alpha pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_B_TO_B_SIZE β€” params returns one value, the size of the blue-to-blue pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_G_TO_G_SIZE β€” params returns one value, the size of the green-to-green pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_I_TO_A_SIZE β€” params returns one value, the size of the index-to-alpha pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_I_TO_B_SIZE β€” params returns one value, the size of the index-to-blue pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_I_TO_G_SIZE β€” params returns one value, the size of the index-to-green pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_I_TO_I_SIZE β€” params returns one value, the size of the index-to-index pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_I_TO_R_SIZE β€” params returns one value, the size of the index-to-red pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_R_TO_R_SIZE β€” params returns one value, the size of the red-to-red pixel translation table. The initial value is 1. See glPixelMap.
  • GL_PIXEL_MAP_S_TO_S_SIZE β€” params returns one value, the size of the stencil-to-stencil pixel translation table. The initial value is 1. See glPixelMap.
bestie the whole pixel map family is out here with an initial size of 1, they're all matching, it's giving coordinated group costume πŸ’…
  • GL_POINT_SIZE β€” params returns one value, the point size as specified by glPointSize. The initial value is 1.
  • GL_POINT_SIZE_GRANULARITY β€” params returns one value, the size difference between adjacent supported sizes for antialiased points. See glPointSize.
  • GL_POINT_SIZE_RANGE β€” params returns two values: the smallest and largest supported sizes for antialiased points 🌈. The smallest size must be at most 1, and the largest size must be at least 1. See glPointSize.
  • GL_POINT_SMOOTH β€” params returns a single boolean value indicating whether antialiasing of points is enabled. The initial value is GL_FALSE. See glPointSize.
  • GL_POINT_SMOOTH_HINT β€” params returns one value, a symbolic constant indicating the mode of the point antialiasing hint. The initial value is GL_DONT_CARE. See glHint.
  • GL_POLYGON_MODE β€” params returns two values: symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, or filled polygons πŸ”Ί. The initial value is GL_FILL. See glPolygonMode.
  • GL_POLYGON_OFFSET_FACTOR β€” params returns one value, the scaling factor used to determine the variable offset that gets added to the depth value of each fragment generated when a polygon is rasterized. The initial value is 0. See glPolygonOffset.
  • GL_POLYGON_OFFSET_UNITS β€” params returns one value. This value is multiplied by an implementation-specific value and then added to the depth value of each fragment generated when a polygon is rasterized. The initial value is 0. See glPolygonOffset.
  • GL_POLYGON_OFFSET_FILL β€” params returns a single boolean value indicating whether polygon offset is enabled for polygons in fill mode. The initial value is GL_FALSE. See glPolygonOffset.
  • GL_POLYGON_OFFSET_LINE β€” params returns a single boolean value indicating whether polygon offset is enabled for polygons in line mode. The initial value is GL_FALSE. See glPolygonOffset.
  • GL_POLYGON_OFFSET_POINT β€” params returns a single boolean value indicating whether polygon offset is enabled for polygons in point mode. The initial value is GL_FALSE. See glPolygonOffset.
  • GL_POLYGON_SMOOTH β€” params returns a single boolean value indicating whether antialiasing of polygons is enabled. The initial value is GL_FALSE. See glPolygonMode.
  • GL_POLYGON_SMOOTH_HINT β€” params returns one value, a symbolic constant indicating the mode of the polygon antialiasing hint. The initial value is GL_DONT_CARE. See glHint.
  • GL_POLYGON_STIPPLE β€” params returns a single boolean value indicating whether polygon stippling is enabled. The initial value is GL_FALSE. See glPolygonStipple.
  • GL_POST_COLOR_MATRIX_COLOR_TABLE β€” params returns a single boolean value indicating whether post color matrix transformation lookup is enabled 🎨. The initial value is GL_FALSE. See glColorTable.
  • GL_POST_COLOR_MATRIX_RED_BIAS β€” params returns one value, the red bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_GREEN_BIAS β€” params returns one value, the green bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. See glPixelTransfer
  • GL_POST_COLOR_MATRIX_BLUE_BIAS β€” params returns one value, the blue bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_ALPHA_BIAS β€” params returns one value, the alpha bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_RED_SCALE β€” params returns one value, the red scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_GREEN_SCALE β€” params returns one value, the green scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_BLUE_SCALE β€” params returns one value, the blue scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. See glPixelTransfer.
  • GL_POST_COLOR_MATRIX_ALPHA_SCALE β€” params hands you one value: the alpha scale factor that gets applied to RGBA fragments after color matrix transformations πŸ’… and the initial value? 1. See glPixelTransfer.
  • GL_POST_CONVOLUTION_COLOR_TABLE β€” returns a single boolean, bestie, telling you whether post-convolution lookup is enabled or not. Initial value is GL_FALSE. See glColorTable πŸŽ€
  • GL_POST_CONVOLUTION_RED_BIAS β€” one value back: the red bias factor applied to RGBA fragments after convolution. Initial value is 0. See glPixelTransfer 🌸
  • GL_POST_CONVOLUTION_GREEN_BIAS β€” one value, the green bias factor applied to RGBA fragments after convolution. Initial value 0. See glPixelTransfer 🌸
  • GL_POST_CONVOLUTION_BLUE_BIAS β€” one value, the blue bias factor applied to RGBA fragments after convolution. Initial value 0. See glPixelTransfer 🌸
  • GL_POST_CONVOLUTION_ALPHA_BIAS β€” one value, the alpha bias factor applied to RGBA fragments after convolution. Initial value 0. See glPixelTransfer 🌸
  • GL_POST_CONVOLUTION_RED_SCALE β€” one value, the red scale factor applied to RGBA fragments after convolution. Initial value is 1. See glPixelTransfer ✨
  • GL_POST_CONVOLUTION_GREEN_SCALE β€” one value, the green scale factor applied to RGBA fragments after convolution. Initial value 1. See glPixelTransfer ✨
  • GL_POST_CONVOLUTION_BLUE_SCALE β€” one value, the blue scale factor applied to RGBA fragments after convolution. Initial value 1. See glPixelTransfer ✨
  • GL_POST_CONVOLUTION_ALPHA_SCALE β€” one value, the alpha scale factor applied to RGBA fragments after convolution. Initial value 1. See glPixelTransfer ✨
  • GL_PROJECTION_MATRIX β€” okay this one's a whole glow-up: params returns sixteen values β€” the projection matrix sitting on top of the projection matrix stack πŸ‘‘. Initially this matrix is the identity matrix. See glPushMatrix.
  • GL_PROJECTION_STACK_DEPTH β€” one value, the number of matrices on the projection matrix stack. Initial value is 1. See glPushMatrix πŸ¦‹
  • GL_READ_BUFFER β€” one value, a symbolic constant saying which color buffer is selected for reading πŸ‘€. Initial value is GL_BACK if there is a back buffer, otherwise it's GL_FRONT. See glReadPixels and glAccum.
  • GL_RED_BIAS β€” one value, the red bias factor used during pixel transfers. Initial value 0 πŸ’œ
  • GL_RED_BITS β€” one value, the number of red bitplanes in each color buffer ⭐
  • GL_RED_SCALE β€” one value, the red scale factor used during pixel transfers. Initial value 1. See glPixelTransfer πŸ’œ
  • GL_RENDER_MODE β€” one value, a symbolic constant telling you whether the GL is in render, select, or feedback mode 🎬. Initial value is GL_RENDER. See glRenderMode.
  • GL_RESCALE_NORMAL β€” returns single boolean value indicating whether normal rescaling is enabled. See glEnable 🌈
  • GL_RGBA_MODE β€” a single boolean value: is the GL in RGBA mode (true) or color index mode (false)? See glColor 🎨
  • GL_SCISSOR_BOX β€” four values, bestie: the x and y window coordinates of the scissor box, followed by its width and height βœ‚οΈ. Initially the x and y window coordinates are both 0 and the width and height are set to the size of the window. See glScissor.
  • GL_SCISSOR_TEST β€” a single boolean value indicating whether scissoring is enabled. Initial value is GL_FALSE. See glScissor βœ‚οΈ
  • GL_SELECTION_BUFFER_SIZE β€” params return one value, the size of the selection buffer. See glSelectBuffer 🫢
  • GL_SEPARABLE_2D β€” a single boolean value indicating whether 2D separable convolution is enabled. Initial value is GL_FALSE. See glSeparableFilter2D 🧚
  • GL_SHADE_MODEL β€” one value, a symbolic constant indicating whether the shading mode is flat or smooth πŸŒ—. Initial value is GL_SMOOTH. See glShadeModel.
  • GL_SMOOTH_LINE_WIDTH_RANGE β€” two values: the smallest and largest supported widths for antialiased lines. See glLineWidth πŸ“
  • GL_SMOOTH_LINE_WIDTH_GRANULARITY β€” one value, the granularity of widths for antialiased lines. See glLineWidth πŸ“
  • GL_SMOOTH_POINT_SIZE_RANGE β€” two values: the smallest and largest supported widths for antialiased points. See glPointSize πŸ”΅
  • GL_SMOOTH_POINT_SIZE_GRANULARITY β€” one value, the granularity of sizes for antialiased points. See glPointSize πŸ”΅
  • GL_STENCIL_BITS β€” one value, the number of bitplanes in the stencil buffer 🧩
  • GL_STENCIL_CLEAR_VALUE β€” one value, the index to which the stencil bitplanes are cleared. Initial value is 0. See glClearStencil 🧹
  • GL_STENCIL_FAIL β€” one value, a symbolic constant indicating what action is taken when the stencil test fails πŸ’€. Initial value is GL_KEEP. See glStencilOp.
  • GL_STENCIL_FUNC β€” one value, a symbolic constant indicating what function is used to compare the stencil reference value with the stencil buffer value. Initial value is GL_ALWAYS. See glStencilFunc βš–οΈ
  • GL_STENCIL_PASS_DEPTH_FAIL β€” one value, a symbolic constant indicating what action is taken when the stencil test passes, but the depth test fails 😭. Initial value is GL_KEEP. See glStencilOp.
  • GL_STENCIL_PASS_DEPTH_PASS β€” one value, a symbolic constant indicating what action is taken when the stencil test passes and the depth test passes πŸ”₯. Initial value is GL_KEEP. See glStencilOp.
  • GL_STENCIL_REF β€” one value, the reference value that gets compared with the contents of the stencil buffer. Initial value is 0. See glStencilFunc 🎯
  • GL_STENCIL_TEST β€” a single boolean value indicating whether stencil testing of fragments is enabled. Initial value is GL_FALSE. See glStencilFunc and glStencilOp 🧩
  • GL_STENCIL_VALUE_MASK β€” one value, the mask used to mask both the stencil reference value and the stencil buffer value before they're compared πŸ‘€. Initial value is all 1's. See glStencilFunc.
  • GL_STENCIL_WRITEMASK β€” one value, the mask that controls writing of the stencil bitplanes ✍️. Initial value is all 1's. See glStencilMask.
  • GL_STEREO β€” a single boolean value indicating whether stereo buffers (left and right) are supported πŸ•ΆοΈ
  • GL_SUBPIXEL_BITS β€” one value, an estimate of the number of bits of subpixel resolution used to position rasterized geometry in window coordinates πŸ”¬. The initial value is 4.
  • GL_TEXTURE_1D β€” a single boolean value indicating whether 1D texture mapping is enabled. Initial value is GL_FALSE. See glTexImage1D 🧡
  • GL_TEXTURE_BINDING_1D β€” a single value: the name of the texture currently bound to the target GL_TEXTURE_1D. Initial value is 0. See glBindTexture πŸ’«
  • GL_TEXTURE_2D β€” a single boolean value indicating whether 2D texture mapping is enabled. Initial value is GL_FALSE. See glTexImage2D 🧡
  • GL_TEXTURE_BINDING_2D β€” a single value: the name of the texture currently bound to the target GL_TEXTURE_2D. Initial value is 0. See glBindTexture πŸ’«
  • GL_TEXTURE_3D β€” bestie, this returns one boolean value telling you whether 3D texture mapping is enabled. The initial value is GL_FALSE. See glTexImage3D. 🧊
  • GL_TEXTURE_BINDING_3D β€” returns one value: the name of the texture currently bound to the target GL_TEXTURE_3D. The initial value is 0. See glBindTexture. πŸŽ€
  • GL_TEXTURE_COORD_ARRAY β€” returns one boolean value saying whether the texture coordinate array is enabled. The initial value is GL_FALSE. See glTexCoordPointer. ✨
  • GL_TEXTURE_COORD_ARRAY_SIZE β€” returns one value: the number of coordinates per element in the texture coordinate array. The initial value is 4. See glTexCoordPointer. πŸ’…
  • GL_TEXTURE_COORD_ARRAY_STRIDE β€” returns one value: the byte offset between consecutive elements in the texture coordinate array. The initial value is 0. See glTexCoordPointer. πŸ¦‹
  • GL_TEXTURE_COORD_ARRAY_TYPE β€” returns one value: the data type of the coordinates in the texture coordinate array. The initial value is GL_FLOAT. See glTexCoordPointer. 🌸
  • GL_TEXTURE_GEN_Q β€” returns one boolean value saying whether automatic generation of the q texture coordinate is enabled. The initial value is GL_FALSE. See glTexGen. πŸ”₯
  • GL_TEXTURE_GEN_R β€” returns one boolean value saying whether automatic generation of the r texture coordinate is enabled. The initial value is GL_FALSE. See glTexGen. πŸ”₯
  • GL_TEXTURE_GEN_S β€” returns one boolean value saying whether automatic generation of the S texture coordinate is enabled. The initial value is GL_FALSE. See glTexGen. πŸ”₯
  • GL_TEXTURE_GEN_T β€” returns one boolean value saying whether automatic generation of the T texture coordinate is enabled. The initial value is GL_FALSE. See glTexGen. πŸ”₯
  • GL_TEXTURE_MATRIX β€” returns sixteen values: the texture matrix on the top of the texture matrix stack. Initially this matrix is the identity matrix. See glPushMatrix. πŸ‘‘
  • GL_TEXTURE_STACK_DEPTH β€” returns one value: the number of matrices on the texture matrix stack. The initial value is 1. See glPushMatrix. πŸŽ€
  • GL_UNPACK_ALIGNMENT β€” returns one value: the byte alignment used for reading pixel data from memory. The initial value is 4. See glPixelStore. πŸ’–
  • GL_UNPACK_IMAGE_HEIGHT β€” returns one value: the image height used for reading pixel data from memory. The initial is 0. See glPixelStore. 🫢
  • GL_UNPACK_LSB_FIRST β€” returns one boolean value saying whether single-bit pixels being read from memory are read first from the least significant bit of each unsigned byte. The initial value is GL_FALSE. See glPixelStore. 😭
  • GL_UNPACK_ROW_LENGTH β€” returns one value: the row length used for reading pixel data from memory. The initial value is 0. See glPixelStore. 🌈
  • GL_UNPACK_SKIP_IMAGES β€” returns one value: the number of pixel images skipped before the first pixel is read from memory. The initial value is 0. See glPixelStore. πŸ¦‹
  • GL_UNPACK_SKIP_PIXELS β€” returns one value: the number of pixel locations skipped before the first pixel is read from memory. The initial value is 0. See glPixelStore. 🌸
  • GL_UNPACK_SKIP_ROWS β€” returns one value: the number of rows of pixel locations skipped before the first pixel is read from memory. The initial value is 0. See glPixelStore. πŸ“
  • GL_UNPACK_SWAP_BYTES β€” returns one boolean value saying whether the bytes of two-byte and four-byte pixel indices and components are swapped after being read from memory. The initial value is GL_FALSE. See glPixelStore. πŸ’€
  • GL_VERTEX_ARRAY β€” returns one boolean value saying whether the vertex array is enabled. The initial value is GL_FALSE. See glVertexPointer. 🌟
  • GL_VERTEX_ARRAY_SIZE β€” returns one value: the number of coordinates per vertex in the vertex array. The initial value is 4. See glVertexPointer. πŸŽ€
  • GL_VERTEX_ARRAY_STRIDE β€” returns one value: the byte offset between consecutive vertices in the vertex array. The initial value is 0. See glVertexPointer. πŸ’œ
  • GL_VERTEX_ARRAY_TYPE β€” returns one value: the data type of each coordinate in the vertex array. The initial value is GL_FLOAT. See glVertexPointer. 🌈
  • GL_VIEWPORT β€” returns four values: the x and y window coordinates of the viewport, followed by its width and height. Initially the x and y window coordinates are both set to 0, and the width and height are set to the width and height of the window into which the GL will do its rendering. See glViewport. πŸͺŸ
  • GL_ZOOM_X β€” returns one value: the x pixel zoom factor. The initial value is 1. See glPixelZoom. πŸ”
  • GL_ZOOM_Y β€” returns one value: the y pixel zoom factor. The initial value is 1. See glPixelZoom. πŸ”

Many of the boolean parameters can also be queried way easier with glIsEnabled β€” iykyk. ✨


πŸŽ€ NOTES πŸŽ€

Okay so real talk: some of these are locked behind GL versions, and you gotta know which is which.

  • The following are available only if the GL version is 1.1 or greater: GL_COLOR_LOGIC_OP, GL_COLOR_ARRAY, GL_COLOR_ARRAY_SIZE, GL_COLOR_ARRAY_STRIDE, GL_COLOR_ARRAY_TYPE, GL_EDGE_FLAG_ARRAY, GL_EDGE_FLAG_ARRAY_STRIDE, GL_INDEX_ARRAY, GL_INDEX_ARRAY_STRIDE, GL_INDEX_ARRAY_TYPE, GL_INDEX_LOGIC_OP, GL_NORMAL_ARRAY, GL_NORMAL_ARRAY_STRIDE, GL_NORMAL_ARRAY_TYPE, GL_POLYGON_OFFSET_UNITS, GL_POLYGON_OFFSET_FACTOR, GL_POLYGON_OFFSET_FILL, GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_POINT, GL_TEXTURE_COORD_ARRAY, GL_TEXTURE_COORD_ARRAY_SIZE, GL_TEXTURE_COORD_ARRAY_STRIDE, GL_TEXTURE_COORD_ARRAY_TYPE, GL_VERTEX_ARRAY, GL_VERTEX_ARRAY_SIZE, GL_VERTEX_ARRAY_STRIDE, and GL_VERTEX_ARRAY_TYPE. πŸ’…
  • The following are available only if the GL version is 1.2 or greater: GL_ALIASED_POINT_SIZE_RANGE, GL_ALIASED_POINT_SIZE_GRANULARITY, GL_FEEDBACK_BUFFER_SIZE, GL_FEEDBACK_BUFFER_TYPE, GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_COLOR_CONTROL, GL_MAX_3D_TEXTURE_SIZE, GL_MAX_ELEMENTS_INDICES, GL_MAX_ELEMENTS_VERTICES, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_IMAGES, GL_RESCALE_NORMAL, GL_SELECTION_BUFFER_SIZE, GL_SMOOTH_LINE_WIDTH_GRANULARITY, GL_SMOOTH_LINE_WIDTH_RANGE, GL_SMOOTH_POINT_SIZE_GRANULARITY, GL_SMOOTH_POINT_SIZE_RANGE, GL_TEXTURE_3D, GL_TEXTURE_BINDING_3D, GL_UNPACK_IMAGE_HEIGHT, and GL_UNPACK_SKIP_IMAGES. ✨

Deprecation tea, serve it cold:

  • GL_LINE_WIDTH_GRANULARITY was deprecated in GL version 1.2. Its functionality was replaced by GL_SMOOTH_LINE_WIDTH_GRANULARITY. 🫠
  • GL_LINE_WIDTH_RANGE was deprecated in GL version 1.2. Its functionality was replaced by GL_SMOOTH_LINE_WIDTH_RANGE. 🫠
  • GL_POINT_SIZE_GRANULARITY was deprecated in GL version 1.2. Its functionality was replaced by GL_SMOOTH_POINT_SIZE_GRANULARITY. 🫠
  • GL_POINT_SIZE_RANGE was deprecated in GL version 1.2. Its functionality was replaced by GL_SMOOTH_POINT_SIZE_RANGE. 🫠

These ones are available only if GL_ARB_imaging is returned from glGet when called with the argument GL_EXTENSIONS: GL_BLEND_COLOR, GL_BLEND_EQUATION, GL_COLOR_MATRIX, GL_COLOR_MATRIX_STACK_DEPTH, GL_COLOR_TABLE, GL_CONVOLUTION_1D, GL_CONVOLUTION_2D, GL_HISTOGRAM, GL_MAX_COLOR_MATRIX_STACK_DEPTH, GL_MINMAX, GL_POST_COLOR_MATRIX_COLOR_TABLE, GL_POST_COLOR_MATRIX_RED_BIAS, GL_POST_COLOR_MATRIX_GREEN_BIAS, GL_POST_COLOR_MATRIX_BLUE_BIAS, GL_POST_COLOR_MATRIX_ALPHA_BIAS, GL_POST_COLOR_MATRIX_RED_SCALE, GL_POST_COLOR_MATRIX_GREEN_SCALE, GL_POST_COLOR_MATRIX_BLUE_SCALE, GL_POST_COLOR_MATRIX_ALPHA_SCALE, GL_POST_CONVOLUTION_COLOR_TABLE, GL_POST_CONVOLUTION_RED_BIAS, GL_POST_CONVOLUTION_GREEN_BIAS, GL_POST_CONVOLUTION_BLUE_BIAS, GL_POST_CONVOLUTION_ALPHA_BIAS, GL_POST_CONVOLUTION_RED_SCALE, GL_POST_CONVOLUTION_GREEN_SCALE, GL_POST_CONVOLUTION_BLUE_SCALE, GL_POST_CONVOLUTION_ALPHA_SCALE, and GL_SEPARABLE_2D. 🌈

GL_ACTIVE_TEXTURE_ARB, GL_CLIENT_ACTIVE_TEXTURE_ARB, and GL_MAX_TEXTURE_UNITS_ARB are available only if GL_ARB_multitexture is returned from glGet when called with the argument GL_EXTENSIONS. πŸ’–

When the GL_ARB_multitexture extension is supported, the following parameters return the associated value for the active texture unit: GL_CURRENT_RASTER_TEXTURE_COORDS, GL_TEXTURE_1D, GL_TEXTURE_BINDING_1D, GL_TEXTURE_2D, GL_TEXTURE_BINDING_2D, GL_TEXTURE_3D, GL_TEXTURE_BINDING_3D, GL_TEXTURE_GEN_S, GL_TEXTURE_GEN_T, GL_TEXTURE_GEN_R, GL_TEXTURE_GEN_Q, GL_TEXTURE_MATRIX, and GL_TEXTURE_STACK_DEPTH. πŸŒ€

Likewise, the following parameters return the associated value for the active client texture unit: GL_TEXTURE_COORD_ARRAY, GL_TEXTURE_COORD_ARRAY_SIZE, GL_TEXTURE_COORD_ARRAY_STRIDE, GL_TEXTURE_COORD_ARRAY_TYPE. 🫢


😀 ERRORS 😀

  • GL_INVALID_ENUM is generated if pname is not an accepted value. πŸ™ˆ
  • GL_INVALID_OPERATION is generated if glGet is executed between the execution of glBegin and the corresponding execution of glEnd. πŸ’€

🌈 SEE ALSO ✨

okay bestie, this is the part where the page just points at its whole friend group 😭 like every single glGet* sibling is linked here, and honestly they all ate. go read them, they're iconic:

  • glGetClipPlane(3G) β€” the clip-plane one
  • glGetColorTable(3G) β€” the color-table one
  • glGetColorTableParameter(3G) β€” the color-table-parameter one
  • glGetConvolutionFilter(3G) β€” the convolution-filter one
  • glGetConvolutionParameter(3G) β€” the convolution-parameter one
  • glGetError(3G) β€” the error one πŸ’€ (you WILL be needing this one ngl)
  • glGetHistogram(3G) β€” the histogram one
  • glGetHistogramParameter(3G) β€” the histogram-parameter one
  • glGetLight(3G) β€” the light one ✨
  • glGetMap(3G) β€” the map one
  • glGetMaterial(3G) β€” the material one
  • glGetMinmax(3G) β€” the minmax one
  • glGetMinmaxParameter(3G) β€” the minmax-parameter one
  • glGetPixelMap(3G) β€” the pixel-map one
  • glGetPointerv(3G) β€” the pointer one (yes, with the v, that's literally the name, don't come for me)
  • glGetPolygonStipple(3G) β€” the polygon-stipple one
  • glGetSeparableFilter(3G) β€” the separable-filter one
  • glGetString(3G) β€” the string one πŸŽ€
  • glGetTexEnv(3G) β€” the tex-env one
  • glGetTexGen(3G) β€” the tex-gen one
  • glGetTexImage(3G) β€” the tex-image one
  • glGetTexLevelParameter(3G) β€” the tex-level-parameter one
  • glGetTexParameter(3G) β€” the tex-parameter one
  • glIsEnabled(3G) β€” the is-enabled one πŸ‘‘

like, that's the whole squad, no cap. go say hi 🫢


and that's a wrap on GLGET(3G) bestie!! πŸ’– this lil masterpiece lives in the 3G manual (that's the source/version tag riding at the bottom of the page, right there next to the date stamp on the far side) β€” so if you're citing it, that's GLGET(3G) + the date in the footer, periodt. now go forth and query things, you absolute icon πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from