GLGET(3G)
β¨ 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βparamsreturns one value, the number of alpha bitplanes in the accumulation buffer. πGL_ACCUM_BLUE_BITSβparamsreturns one value, the number of blue bitplanes in the accumulation buffer. πGL_ACCUM_CLEAR_VALUEβparamsreturns 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 that1.0returns the most positive representable integer value, and-1.0returns the most negative representable integer value. The initial value is(0, 0, 0, 0). SeeglClearAccum. πGL_ACCUM_GREEN_BITSβparamsreturns one value, the number of green bitplanes in the accumulation buffer. πGL_ACCUM_RED_BITSβparamsreturns one value, the number of red bitplanes in the accumulation buffer. β€οΈGL_ACTIVE_TEXTURE_ARBβparamsreturns a single value indicating the active multitexture unit. The initial value isGL_TEXTURE0_ARB. SeeglActiveTextureARB. β¨GL_ALIASED_POINT_SIZE_RANGEβparamsreturns two values, the smallest and largest supported sizes for aliased points. π―GL_ALIASED_LINE_WIDTH_RANGEβparamsreturns two values, the smallest and largest supported widths for aliased lines. πGL_ALPHA_BIASβparamsreturns one value, the alpha bias factor used during pixel transfers. The initial value is0. SeeglPixelTransfer. πΈGL_ALPHA_BITSβparamsreturns one value, the number of alpha bitplanes in each color buffer. πGL_ALPHA_SCALEβparamsreturns one value, the alpha scale factor used during pixel transfers. The initial value is1. SeeglPixelTransfer. πGL_ALPHA_TESTβparamsreturns a single boolean value indicating whether alpha testing of fragments is enabled. The initial value isGL_FALSE. SeeglAlphaFunc. π«ΆGL_ALPHA_TEST_FUNCβparamsreturns one value, the symbolic name of the alpha test function. The initial value isGL_ALWAYS. SeeglAlphaFunc. π₯GL_ALPHA_TEST_REFβparamsreturns one value, the reference value for the alpha test. The initial value is0. SeeglAlphaFunc. An integer value, if requested, is linearly mapped from the internal floating-point representation such that1.0returns the most positive representable integer value, and-1.0returns the most negative representable integer value. πGL_ATTRIB_STACK_DEPTHβparamsreturns one value, the depth of the attribute stack. If the stack is empty,0is returned. The initial value is0. SeeglPushAttrib. π§GL_AUTO_NORMALβparamsreturns a single boolean value indicating whether 2D map evaluation automatically generates surface normals. The initial value isGL_FALSE. SeeglMap2. π¦GL_AUX_BUFFERSβparamsreturns one value, the number of auxiliary color buffers. The initial value is0. πGL_BLENDβparamsreturns a single boolean value indicating whether blending is enabled. The initial value isGL_FALSE. SeeglBlendFunc. πGL_BLEND_COLORβparamsreturns four values, the red, green, blue, and alpha values which are the components of the blend color. SeeglBlendColor. π¨GL_BLEND_DSTβparamsreturns one value, the symbolic constant identifying the destination blend function. The initial value isGL_ZERO. SeeglBlendFunc. β¨GL_BLEND_EQUATIONβparamsreturns one value, a symbolic constant indicating whether the blend equation isGL_FUNC_ADD,GL_MINorGL_MAX. SeeglBlendEquation. πGL_BLEND_SRCβparamsreturns one value, the symbolic constant identifying the source blend function. The initial value isGL_ONE. SeeglBlendFunc. π«ΆGL_BLUE_BIASβparamsreturns one value, the blue bias factor used during pixel transfers. The initial value is0. SeeglPixelTransfer. πGL_BLUE_BITSβparamsreturns one value, the number of blue bitplanes in each color buffer. π΅GL_BLUE_SCALEβparamsreturns one value, the blue scale factor used during pixel transfers. The initial value is1. SeeglPixelTransfer. πGL_CLIENT_ACTIVE_TEXTURE_ARBβparamsreturns a single integer value indicating the current client active multitexture unit. The initial value isGL_TEXTURE0_ARB. SeeglClientActiveTextureARB. β¨GL_CLIENT_ATTRIB_STACK_DEPTHβparamsreturns one value indicating the depth of the attribute stack. The initial value is0. SeeglPushClientAttrib. πGL_CLIP_PLANEiβparamsreturns a single boolean value indicating whether the specified clipping plane is enabled. The initial value isGL_FALSE. SeeglClipPlane. βοΈGL_COLOR_ARRAYβparamsreturns a single boolean value indicating whether the color array is enabled. The initial value isGL_FALSE. SeeglColorPointer. πGL_COLOR_ARRAY_SIZEβparamsreturns one value, the number of components per color in the color array. The initial value is4. SeeglColorPointer. π¨GL_COLOR_ARRAY_STRIDEβparamsreturns one value, the byte offset between consecutive colors in the color array. The initial value is0. SeeglColorPointer. πGL_COLOR_ARRAY_TYPEβparamsreturns one value, the data type of each component in the color array. The initial value isGL_FLOAT. SeeglColorPointer. πGL_COLOR_CLEAR_VALUEβparamsreturns 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 that1.0returns the most positive representable integer value, and-1.0returns the most negative representable integer value. The initial value is(0, 0, 0, 0). SeeglClearColor. πGL_COLOR_LOGIC_OPβparamsreturns a single boolean value indicating whether a fragment's RGBA color values are merged into the framebuffer using a logical operation. The initial value isGL_FALSE. SeeglLogicOp. π§GL_COLOR_MATERIALβparamsreturns a single boolean value indicating whether one or more material parameters are tracking the current color. The initial value isGL_FALSE. SeeglColorMaterial. π¨GL_COLOR_MATERIAL_FACEβparamsreturns one value, a symbolic constant indicating which materials have a parameter that is tracking the current color. The initial value isGL_FRONT_AND_BACK. SeeglColorMaterial. π«ΆGL_COLOR_MATERIAL_PARAMETERβparamsgives you one value, a symbolic constant saying which material parameters are currently tracking the current color. The initial value isGL_AMBIENT_AND_DIFFUSE. SeeglColorMaterial. β¨GL_COLOR_MATRIXβparamsgives you sixteen values: the color matrix sitting on top of the color matrix stack. Initially this matrix is the identity matrix. SeeglPushMatrix. πGL_COLOR_MATRIX_STACK_DEPTHβparamsgives you one value, the maximum supported depth of the projection matrix stack. The value must be at least 2. SeeglPushMatrix. (yes bestie, we're all side-eyeing that wording β that's literally what the page says, not me π)GL_COLOR_TABLEβparamsgives you a single boolean value telling you whether the color table lookup is enabled. SeeglColorTable. πGL_COLOR_WRITEMASKβparamsgives 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). SeeglColorMask. πGL_CONVOLUTION_1Dβparamsgives you a single boolean value telling you whether 1D convolution is enabled. The initial value isGL_FALSE. SeeglConvolutionFilter1D.GL_CONVOLUTION_2Dβparamsgives you a single boolean value telling you whether 2D convolution is enabled. The initial value isGL_FALSE. SeeglConvolutionFilter2D.GL_CULL_FACEβparamsgives you a single boolean value telling you whether polygon culling is enabled. The initial value isGL_FALSE. SeeglCullFace.GL_CULL_FACE_MODEβparamsgives you one value, a symbolic constant telling you which polygon faces are the ones getting culled. The initial value isGL_BACK. SeeglCullFace. π₯GL_CURRENT_COLORβparamsgives 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 that1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. SeeglColor. The initial value is (1, 1, 1, 1). πGL_CURRENT_INDEXβparamsgives you one value, the current color index. The initial value is 1. SeeglIndex.GL_CURRENT_NORMALβparamsgives 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 that1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. The initial value is (0, 0, 1). SeeglNormal.GL_CURRENT_RASTER_COLORβparamsgives 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, so1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. The initial value is (1, 1, 1, 1). SeeglRasterPos. βGL_CURRENT_RASTER_DISTANCEβparamsgives you one value, the distance from the eye to the current raster position. The initial value is 0. SeeglRasterPos.GL_CURRENT_RASTER_INDEXβparamsgives you one value, the color index of the current raster position. The initial value is 1. SeeglRasterPos.GL_CURRENT_RASTER_POSITIONβparamsgives 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). SeeglRasterPos. π¦GL_CURRENT_RASTER_POSITION_VALIDβparamsgives you a single boolean value telling you whether the current raster position is valid. The initial value isGL_TRUE. SeeglRasterPos.GL_CURRENT_RASTER_TEXTURE_COORDSβparamsgives you four values: the s, t, r, and q current raster texture coordinates. The initial value is (0, 0, 0, 1). SeeglRasterPosandglTexCoord.GL_CURRENT_TEXTURE_COORDSβparamsgives you four values: the s, t, r, and q current texture coordinates. The initial value is (0, 0, 0, 1). SeeglTexCoord. πΈGL_DEPTH_BIASβparamsgives you one value, the depth bias factor used during pixel transfers. The initial value is 0. SeeglPixelTransfer.GL_DEPTH_BITSβparamsgives 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βparamsgives 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 that1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. The initial value is 1. SeeglClearDepth.GL_DEPTH_FUNCβparamsgives you one value, the symbolic constant indicating the depth comparison function. The initial value isGL_LESS. SeeglDepthFunc.GL_DEPTH_RANGEβparamsgives 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 that1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. The initial value is (0, 1). SeeglDepthRange. π«ΆGL_DEPTH_SCALEβparamsgives you one value, the depth scale factor used during pixel transfers. The initial value is 1. SeeglPixelTransfer.GL_DEPTH_TESTβparamsgives you a single boolean value telling you whether depth testing of fragments is enabled. The initial value isGL_FALSE. SeeglDepthFuncandglDepthRange.GL_DEPTH_WRITEMASKβparamsgives you a single boolean value telling you if the depth buffer is enabled for writing. The initial value isGL_TRUE. SeeglDepthMask. πGL_DITHERβparamsgives you a single boolean value telling you whether dithering of fragment colors and indices is enabled. The initial value isGL_TRUE.GL_DOUBLEBUFFERβparamsgives you a single boolean value telling you whether double buffering is supported. πGL_DRAW_BUFFERβparamsgives you one value, a symbolic constant indicating which buffers are being drawn to. SeeglDrawBuffer. The initial value isGL_BACKif there are back buffers, otherwise it isGL_FRONT.GL_EDGE_FLAGβparamsgives you a single boolean value telling you whether the current edge flag isGL_TRUEorGL_FALSE. The initial value isGL_TRUE. SeeglEdgeFlag.GL_EDGE_FLAG_ARRAYβparamsgives you a single boolean value telling you whether the edge flag array is enabled. The initial value isGL_FALSE. SeeglEdgeFlagPointer.GL_EDGE_FLAG_ARRAY_STRIDEβparamsgives you one value, the byte offset between consecutive edge flags in the edge flag array. The initial value is 0. SeeglEdgeFlagPointer. πΏGL_FEEDBACK_BUFFER_SIZEβparamsgives you one value, the size of the feedback buffer. SeeglFeedbackBuffer.GL_FEEDBACK_BUFFER_TYPEβparamsgives you one value, the type of the feedback buffer. SeeglFeedbackBuffer.GL_FOGβparamsgives you a single boolean value telling you whether fogging is enabled. The initial value isGL_FALSE. SeeglFog. π«οΈGL_FOG_COLORβparamsgives 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 that1.0returns the most positive representable integer value and-1.0returns the most negative representable integer value. The initial value is (0, 0, 0, 0). SeeglFog.GL_FOG_DENSITYβparamsgives you one value, the fog density parameter. The initial value is 1. SeeglFog. πGL_FOG_ENDβparamsreturns one value, the end factor for the linear fog equation. Initial value is1. SeeglFog. π«οΈGL_FOG_HINTβparamsreturns one value, a symbolic constant telling you the mode of the fog hint. Initial value isGL_DONT_CARE. SeeglHint.GL_FOG_INDEXβparamsreturns one value, the fog color index. Initial value is0. SeeglFog.GL_FOG_MODEβparamsreturns one value, a symbolic constant saying which fog equation got picked. Initial value isGL_EXP. SeeglFog.GL_FOG_STARTβparamsreturns one value, the start factor for the linear fog equation. Initial value is0. SeeglFog.GL_FRONT_FACEβparamsreturns one value, a symbolic constant saying whether clockwise or counterclockwise polygon winding counts as front-facing. Initial value isGL_CCW. SeeglFrontFace.GL_GREEN_BIASβparamsreturns one value, the green bias factor used during pixel transfers. Initial value is0. πGL_GREEN_BITSβparamsreturns one value, the number of green bitplanes in each color buffer.GL_GREEN_SCALEβparamsreturns one value, the green scale factor used during pixel transfers. Initial value is1. SeeglPixelTransfer.GL_HISTOGRAMβparamsreturns a single boolean value saying whether histogram is enabled. Initial value isGL_FALSE. SeeglHistogram.GL_INDEX_ARRAYβparamsreturns a single boolean value saying whether the color index array is enabled. Initial value isGL_FALSE. SeeglIndexPointer.GL_INDEX_ARRAY_STRIDEβparamsreturns one value, the byte offset between consecutive color indexes in the color index array. Initial value is0. SeeglIndexPointer.GL_INDEX_ARRAY_TYPEβparamsreturns one value, the data type of indexes in the color index array. Initial value isGL_FLOAT. SeeglIndexPointer.GL_INDEX_BITSβparamsreturns one value, the number of bitplanes in each color index buffer.GL_INDEX_CLEAR_VALUEβparamsreturns one value, the color index used to clear the color index buffers. Initial value is0. SeeglClearIndex.GL_INDEX_LOGIC_OPβparamsreturns a single boolean value saying whether a fragment's index values get merged into the framebuffer using a logical operation. Initial value isGL_FALSE. SeeglLogicOp.GL_INDEX_MODEβparamsreturns a single boolean value saying whether the GL is in color index mode (GL_TRUE) or RGBA mode (GL_FALSE). π¨GL_INDEX_OFFSETβparamsreturns one value, the offset added to color and stencil indices during pixel transfers. Initial value is0. SeeglPixelTransfer.GL_INDEX_SHIFTβparamsreturns one value, the amount that color and stencil indices are shifted during pixel transfers. Initial value is0. SeeglPixelTransfer.GL_INDEX_WRITEMASKβparamsreturns one value, a mask indicating which bitplanes of each color index buffer can be written. Initial value is all 1's. SeeglIndexMask.GL_LIGHTiβparamsreturns a single boolean value saying whether the specified light is enabled. Initial value isGL_FALSE. SeeglLightandglLightModel. π‘GL_LIGHTINGβparamsreturns a single boolean value saying whether lighting is enabled. Initial value isGL_FALSE. SeeglLightModel.GL_LIGHT_MODEL_AMBIENTβparamsreturns 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 that1.0returns the most positive representable integer value, and-1.0returns the most negative representable integer value. Initial value is(0.2, 0.2, 0.2, 1.0). SeeglLightModel.GL_LIGHT_MODEL_COLOR_CONTROLβparamsreturns single enumerated value indicating whether specular reflection calculations are separated from normal lighting computations. Initial value isGL_SINGLE_COLOR.GL_LIGHT_MODEL_LOCAL_VIEWERβparamsreturns a single boolean value indicating whether specular reflection calculations treat the viewer as being local to the scene. Initial value isGL_FALSE. SeeglLightModel.GL_LIGHT_MODEL_TWO_SIDEβparamsreturns a single boolean value indicating whether separate materials are used to compute lighting for front- and back-facing polygons. Initial value isGL_FALSE. SeeglLightModel.GL_LINE_SMOOTHβparamsreturns a single boolean value indicating whether antialiasing of lines is enabled. Initial value isGL_FALSE. SeeglLineWidth.GL_LINE_SMOOTH_HINTβparamsreturns one value, a symbolic constant indicating the mode of the line antialiasing hint. Initial value isGL_DONT_CARE. SeeglHint.GL_LINE_STIPPLEβparamsreturns a single boolean value indicating whether stippling of lines is enabled. Initial value isGL_FALSE. SeeglLineStipple.GL_LINE_STIPPLE_PATTERNβparamsreturns one value, the 16-bit line stipple pattern. Initial value is all 1's. SeeglLineStipple.GL_LINE_STIPPLE_REPEATβparamsreturns one value, the line stipple repeat factor. Initial value is1. SeeglLineStipple.GL_LINE_WIDTHβparamsreturns one value, the line width as specified withglLineWidth. Initial value is1.GL_LINE_WIDTH_GRANULARITYβparamsreturns one value, the width difference between adjacent supported widths for antialiased lines. SeeglLineWidth.GL_LINE_WIDTH_RANGEβparamsreturns two values: the smallest and largest supported widths for antialiased lines. SeeglLineWidth.GL_LIST_BASEβparamsreturns one value, the base offset added to all names in arrays presented toglCallLists. Initial value is0. SeeglListBase.GL_LIST_INDEXβparamsreturns one value, the name of the display list currently under construction.0is returned if no display list is currently under construction. Initial value is0. SeeglNewList.GL_LIST_MODEβparamsreturns one value, a symbolic constant indicating the construction mode of the display list currently under construction. Initial value is0. SeeglNewList.GL_LOGIC_OP_MODEβparamsreturns one value, a symbolic constant indicating the selected logic operation mode. Initial value isGL_COPY. SeeglLogicOp.GL_MAP1_COLOR_4βparamsreturns a single boolean value indicating whether 1D evaluation generates colors. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_GRID_DOMAINβparamsreturns two values: the endpoints of the 1D map's grid domain. Initial value is(0, 1). SeeglMapGrid.GL_MAP1_GRID_SEGMENTSβparamsreturns one value, the number of partitions in the 1D map's grid domain. Initial value is1. SeeglMapGrid.GL_MAP1_INDEXβparamsreturns a single boolean value indicating whether 1D evaluation generates color indices. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_NORMALβparamsreturns a single boolean value indicating whether 1D evaluation generates normals. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_TEXTURE_COORD_1βparamsreturns a single boolean value indicating whether 1D evaluation generates 1D texture coordinates. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_TEXTURE_COORD_2βparamsreturns a single boolean value indicating whether 1D evaluation generates 2D texture coordinates. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_TEXTURE_COORD_3βparamsgets a single boolean back, and it tells you whether your 1D evaluation is generating 3D texture coordinates. Starts out asGL_FALSE. Go peek atglMap1. β¨GL_MAP1_TEXTURE_COORD_4β same deal, single boolean, but this one's about whether 1D evaluation spits out 4D texture coordinates. Initial valueGL_FALSE.glMap1has the lore. πGL_MAP1_VERTEX_3β single boolean, indicating whether 1D evaluation generates 3D vertex coordinates. Initial value isGL_FALSE. SeeglMap1.GL_MAP1_VERTEX_4β single boolean, indicating whether 1D evaluation generates 4D vertex coordinates. Initial value isGL_FALSE. SeeglMap1.GL_MAP2_COLOR_4β single boolean, indicating whether 2D evaluation generates colors. Initial valueGL_FALSE. SeeglMap2. πΈGL_MAP2_GRID_DOMAINβparamsgets four values back: the endpoints of the 2D map's i and j grid domains. Initial value is(0,1; 0,1). SeeglMapGrid. π¦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). SeeglMapGrid.GL_MAP2_INDEXβ single boolean, indicating whether 2D evaluation generates color indices. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_NORMALβ single boolean, indicating whether 2D evaluation generates normals. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_TEXTURE_COORD_1β single boolean, indicating whether 2D evaluation generates 1D texture coordinates. Initial valueGL_FALSE. SeeglMap2. πGL_MAP2_TEXTURE_COORD_2β single boolean, indicating whether 2D evaluation generates 2D texture coordinates. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_TEXTURE_COORD_3β single boolean, indicating whether 2D evaluation generates 3D texture coordinates. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_TEXTURE_COORD_4β single boolean, indicating whether 2D evaluation generates 4D texture coordinates. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_VERTEX_3β single boolean, indicating whether 2D evaluation generates 3D vertex coordinates. Initial valueGL_FALSE. SeeglMap2.GL_MAP2_VERTEX_4β single boolean, indicating whether 2D evaluation generates 4D vertex coordinates. Initial valueGL_FALSE. SeeglMap2. πGL_MAP_COLORβ single boolean, indicating if colors and color indices are to be replaced by table lookup during pixel transfers. Initial valueGL_FALSE. SeeglPixelTransfer. πGL_MAP_STENCILβ single boolean, indicating if stencil indices are to be replaced by table lookup during pixel transfers. Initial valueGL_FALSE. SeeglPixelTransfer.GL_MATRIX_MODEβ one value, a symbolic constant telling you which matrix stack is currently the target of all matrix operations. Initial value isGL_MODELVIEW. SeeglMatrixMode. π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, useGL_PROXY_TEXTURE_3Dto find out if a texture is too large. SeeglTexImage3D. π₯GL_MAX_CLIENT_ATTRIB_STACK_DEPTHβ one value, indicating the maximum supported depth of the client attribute stack. SeeglPushClientAttrib.GL_MAX_ATTRIB_STACK_DEPTHβ one value, the maximum supported depth of the attribute stack. The value must be at least 16. SeeglPushAttrib. β¨GL_MAX_CLIP_PLANESβ one value, the maximum number of application-defined clipping planes. The value must be at least 6. SeeglClipPlane.GL_MAX_COLOR_MATRIX_STACK_DEPTHβ one value, the maximum supported depth of the color matrix stack. The value must be at least 2. SeeglPushMatrix.GL_MAX_ELEMENTS_INDICESβ one value, the recommended maximum number of vertex array indices. SeeglDrawRangeElements. π«ΆGL_MAX_ELEMENTS_VERTICESβ one value, the recommended maximum number of vertex array vertices. SeeglDrawRangeElements.GL_MAX_EVAL_ORDERβ one value, the maximum equation order supported by 1D and 2D evaluators. The value must be at least 8. SeeglMap1andglMap2. πΈGL_MAX_LIGHTSβ one value, the maximum number of lights. The value must be at least 8. SeeglLight.GL_MAX_LIST_NESTINGβ one value, the maximum recursion depth allowed during display-list traversal. The value must be at least 64. SeeglCallList. πGL_MAX_MODELVIEW_STACK_DEPTHβ one value, the maximum supported depth of the modelview matrix stack. The value must be at least 32. SeeglPushMatrix.GL_MAX_NAME_STACK_DEPTHβ one value, the maximum supported depth of the selection name stack. The value must be at least 64. SeeglPushName.GL_MAX_PIXEL_MAP_TABLEβ one value, the maximum supported size of aglPixelMaplookup table. The value must be at least 32. SeeglPixelMap. πGL_MAX_PROJECTION_STACK_DEPTHβ one value, the maximum supported depth of the projection matrix stack. The value must be at least 2. SeeglPushMatrix.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, useGL_PROXY_TEXTURE_1DorGL_PROXY_TEXTURE_2Dto find out if a texture is too large. SeeglTexImage1DandglTexImage2D. πGL_MAX_TEXTURE_STACK_DEPTHβ one value, the maximum supported depth of the texture matrix stack. The value must be at least 2. SeeglPushMatrix.GL_MAX_TEXTURE_UNITS_ARBβ a single value indicating the number of texture units supported. The value must be at least 1. SeeglActiveTextureARB. π§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. SeeglViewport.GL_MINMAXβ a single boolean value, indicating whether pixel minmax values are computed. Initial value isGL_FALSE. SeeglMinmax.GL_MODELVIEW_MATRIXβ sixteen values: the modelview matrix sitting on top of the modelview matrix stack. Initially this matrix is the identity matrix. SeeglPushMatrix. πGL_MODELVIEW_STACK_DEPTHβ one value, the number of matrices on the modelview matrix stack. Initial value is 1. SeeglPushMatrix.GL_NAME_STACK_DEPTHβ one value, the number of names on the selection name stack. Initial value is 0. SeeglPushName. β¨GL_NORMAL_ARRAYβ a single boolean value, indicating whether the normal array is enabled. Initial value isGL_FALSE. SeeglNormalPointer.GL_NORMAL_ARRAY_STRIDEβ one value, the byte offset between consecutive normals in the normal array. Initial value is 0. SeeglNormalPointer. π¦GL_NORMAL_ARRAY_TYPEβ one value, the data type of each coordinate in the normal array. Initial value isGL_FLOAT. SeeglNormalPointer. πGL_NORMALIZEβparamsreturns 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 isGL_FALSE. SeeglNormal.GL_PACK_ALIGNMENTβparamsreturns one value: the byte alignment used when writing pixel data to memory. The initial value is 4. SeeglPixelStore.GL_PACK_IMAGE_HEIGHTβparamsreturns one value, the image height used for writing pixel data to memory. Initial value? 0. SeeglPixelStore.GL_PACK_LSB_FIRSTβparamsreturns 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 isGL_FALSE. SeeglPixelStore.GL_PACK_ROW_LENGTHβparamsreturns one value, the row length used for writing pixel data to memory. Initial value is 0. SeeglPixelStore.GL_PACK_SKIP_IMAGESβparamsreturns one value, the number of pixel images skipped before the first pixel is written into memory. The initial value is 0. SeeglPixelStore.GL_PACK_SKIP_PIXELSβparamsreturns one value, the number of pixel locations skipped before the first pixel is written into memory. The initial value is 0. SeeglPixelStore.GL_PACK_SKIP_ROWSβparamsreturns one value, the number of rows of pixel locations skipped before the first pixel is written into memory. The initial value is 0. SeeglPixelStore.GL_PACK_SWAP_BYTESβparamsreturns 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 isGL_FALSE. SeeglPixelStore.GL_PERSPECTIVE_CORRECTION_HINTβparamsreturns one value, a symbolic constant indicating the mode of the perspective correction hint. The initial value isGL_DONT_CARE. SeeglHint.GL_PIXEL_MAP_A_TO_A_SIZEβparamsreturns one value, the size of the alpha-to-alpha pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_B_TO_B_SIZEβparamsreturns one value, the size of the blue-to-blue pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_G_TO_G_SIZEβparamsreturns one value, the size of the green-to-green pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_I_TO_A_SIZEβparamsreturns one value, the size of the index-to-alpha pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_I_TO_B_SIZEβparamsreturns one value, the size of the index-to-blue pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_I_TO_G_SIZEβparamsreturns one value, the size of the index-to-green pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_I_TO_I_SIZEβparamsreturns one value, the size of the index-to-index pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_I_TO_R_SIZEβparamsreturns one value, the size of the index-to-red pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_R_TO_R_SIZEβparamsreturns one value, the size of the red-to-red pixel translation table. The initial value is 1. SeeglPixelMap.GL_PIXEL_MAP_S_TO_S_SIZEβparamsreturns one value, the size of the stencil-to-stencil pixel translation table. The initial value is 1. SeeglPixelMap.
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βparamsreturns one value, the point size as specified byglPointSize. The initial value is 1.GL_POINT_SIZE_GRANULARITYβparamsreturns one value, the size difference between adjacent supported sizes for antialiased points. SeeglPointSize.GL_POINT_SIZE_RANGEβparamsreturns 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. SeeglPointSize.GL_POINT_SMOOTHβparamsreturns a single boolean value indicating whether antialiasing of points is enabled. The initial value isGL_FALSE. SeeglPointSize.GL_POINT_SMOOTH_HINTβparamsreturns one value, a symbolic constant indicating the mode of the point antialiasing hint. The initial value isGL_DONT_CARE. SeeglHint.GL_POLYGON_MODEβparamsreturns two values: symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, or filled polygons πΊ. The initial value isGL_FILL. SeeglPolygonMode.GL_POLYGON_OFFSET_FACTORβparamsreturns 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. SeeglPolygonOffset.GL_POLYGON_OFFSET_UNITSβparamsreturns 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. SeeglPolygonOffset.GL_POLYGON_OFFSET_FILLβparamsreturns a single boolean value indicating whether polygon offset is enabled for polygons in fill mode. The initial value isGL_FALSE. SeeglPolygonOffset.GL_POLYGON_OFFSET_LINEβparamsreturns a single boolean value indicating whether polygon offset is enabled for polygons in line mode. The initial value isGL_FALSE. SeeglPolygonOffset.GL_POLYGON_OFFSET_POINTβparamsreturns a single boolean value indicating whether polygon offset is enabled for polygons in point mode. The initial value isGL_FALSE. SeeglPolygonOffset.GL_POLYGON_SMOOTHβparamsreturns a single boolean value indicating whether antialiasing of polygons is enabled. The initial value isGL_FALSE. SeeglPolygonMode.GL_POLYGON_SMOOTH_HINTβparamsreturns one value, a symbolic constant indicating the mode of the polygon antialiasing hint. The initial value isGL_DONT_CARE. SeeglHint.GL_POLYGON_STIPPLEβparamsreturns a single boolean value indicating whether polygon stippling is enabled. The initial value isGL_FALSE. SeeglPolygonStipple.GL_POST_COLOR_MATRIX_COLOR_TABLEβparamsreturns a single boolean value indicating whether post color matrix transformation lookup is enabled π¨. The initial value isGL_FALSE. SeeglColorTable.GL_POST_COLOR_MATRIX_RED_BIASβparamsreturns one value, the red bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_GREEN_BIASβparamsreturns one value, the green bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. SeeglPixelTransferGL_POST_COLOR_MATRIX_BLUE_BIASβparamsreturns one value, the blue bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_ALPHA_BIASβparamsreturns one value, the alpha bias factor applied to RGBA fragments after color matrix transformations. The initial value is 0. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_RED_SCALEβparamsreturns one value, the red scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_GREEN_SCALEβparamsreturns one value, the green scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_BLUE_SCALEβparamsreturns one value, the blue scale factor applied to RGBA fragments after color matrix transformations. The initial value is 1. SeeglPixelTransfer.GL_POST_COLOR_MATRIX_ALPHA_SCALEβparamshands you one value: the alpha scale factor that gets applied to RGBA fragments after color matrix transformations π and the initial value?1. SeeglPixelTransfer.GL_POST_CONVOLUTION_COLOR_TABLEβ returns a single boolean, bestie, telling you whether post-convolution lookup is enabled or not. Initial value isGL_FALSE. SeeglColorTableπGL_POST_CONVOLUTION_RED_BIASβ one value back: the red bias factor applied to RGBA fragments after convolution. Initial value is0. SeeglPixelTransferπΈGL_POST_CONVOLUTION_GREEN_BIASβ one value, the green bias factor applied to RGBA fragments after convolution. Initial value0. SeeglPixelTransferπΈGL_POST_CONVOLUTION_BLUE_BIASβ one value, the blue bias factor applied to RGBA fragments after convolution. Initial value0. SeeglPixelTransferπΈGL_POST_CONVOLUTION_ALPHA_BIASβ one value, the alpha bias factor applied to RGBA fragments after convolution. Initial value0. SeeglPixelTransferπΈGL_POST_CONVOLUTION_RED_SCALEβ one value, the red scale factor applied to RGBA fragments after convolution. Initial value is1. SeeglPixelTransferβ¨GL_POST_CONVOLUTION_GREEN_SCALEβ one value, the green scale factor applied to RGBA fragments after convolution. Initial value1. SeeglPixelTransferβ¨GL_POST_CONVOLUTION_BLUE_SCALEβ one value, the blue scale factor applied to RGBA fragments after convolution. Initial value1. SeeglPixelTransferβ¨GL_POST_CONVOLUTION_ALPHA_SCALEβ one value, the alpha scale factor applied to RGBA fragments after convolution. Initial value1. SeeglPixelTransferβ¨GL_PROJECTION_MATRIXβ okay this one's a whole glow-up:paramsreturns sixteen values β the projection matrix sitting on top of the projection matrix stack π. Initially this matrix is the identity matrix. SeeglPushMatrix.GL_PROJECTION_STACK_DEPTHβ one value, the number of matrices on the projection matrix stack. Initial value is1. SeeglPushMatrixπ¦GL_READ_BUFFERβ one value, a symbolic constant saying which color buffer is selected for reading π. Initial value isGL_BACKif there is a back buffer, otherwise it'sGL_FRONT. SeeglReadPixelsandglAccum.GL_RED_BIASβ one value, the red bias factor used during pixel transfers. Initial value0π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 value1. SeeglPixelTransferπGL_RENDER_MODEβ one value, a symbolic constant telling you whether the GL is in render, select, or feedback mode π¬. Initial value isGL_RENDER. SeeglRenderMode.GL_RESCALE_NORMALβ returns single boolean value indicating whether normal rescaling is enabled. SeeglEnableπGL_RGBA_MODEβ a single boolean value: is the GL in RGBA mode (true) or color index mode (false)? SeeglColorπ¨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 both0and the width and height are set to the size of the window. SeeglScissor.GL_SCISSOR_TESTβ a single boolean value indicating whether scissoring is enabled. Initial value isGL_FALSE. SeeglScissorβοΈGL_SELECTION_BUFFER_SIZEβparamsreturn one value, the size of the selection buffer. SeeglSelectBufferπ«ΆGL_SEPARABLE_2Dβ a single boolean value indicating whether 2D separable convolution is enabled. Initial value isGL_FALSE. SeeglSeparableFilter2Dπ§GL_SHADE_MODELβ one value, a symbolic constant indicating whether the shading mode is flat or smooth π. Initial value isGL_SMOOTH. SeeglShadeModel.GL_SMOOTH_LINE_WIDTH_RANGEβ two values: the smallest and largest supported widths for antialiased lines. SeeglLineWidthπGL_SMOOTH_LINE_WIDTH_GRANULARITYβ one value, the granularity of widths for antialiased lines. SeeglLineWidthπGL_SMOOTH_POINT_SIZE_RANGEβ two values: the smallest and largest supported widths for antialiased points. SeeglPointSizeπ΅GL_SMOOTH_POINT_SIZE_GRANULARITYβ one value, the granularity of sizes for antialiased points. SeeglPointSizeπ΅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 is0. SeeglClearStencilπ§ΉGL_STENCIL_FAILβ one value, a symbolic constant indicating what action is taken when the stencil test fails π. Initial value isGL_KEEP. SeeglStencilOp.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 isGL_ALWAYS. SeeglStencilFuncβοΈ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 isGL_KEEP. SeeglStencilOp.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 isGL_KEEP. SeeglStencilOp.GL_STENCIL_REFβ one value, the reference value that gets compared with the contents of the stencil buffer. Initial value is0. SeeglStencilFuncπ―GL_STENCIL_TESTβ a single boolean value indicating whether stencil testing of fragments is enabled. Initial value isGL_FALSE. SeeglStencilFuncandglStencilOpπ§©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 isall 1's. SeeglStencilFunc.GL_STENCIL_WRITEMASKβ one value, the mask that controls writing of the stencil bitplanes βοΈ. Initial value isall 1's. SeeglStencilMask.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 is4.GL_TEXTURE_1Dβ a single boolean value indicating whether 1D texture mapping is enabled. Initial value isGL_FALSE. SeeglTexImage1Dπ§΅GL_TEXTURE_BINDING_1Dβ a single value: the name of the texture currently bound to the targetGL_TEXTURE_1D. Initial value is0. SeeglBindTextureπ«GL_TEXTURE_2Dβ a single boolean value indicating whether 2D texture mapping is enabled. Initial value isGL_FALSE. SeeglTexImage2Dπ§΅GL_TEXTURE_BINDING_2Dβ a single value: the name of the texture currently bound to the targetGL_TEXTURE_2D. Initial value is0. SeeglBindTextureπ«GL_TEXTURE_3Dβ bestie, this returns one boolean value telling you whether 3D texture mapping is enabled. The initial value isGL_FALSE. SeeglTexImage3D. π§GL_TEXTURE_BINDING_3Dβ returns one value: the name of the texture currently bound to the targetGL_TEXTURE_3D. The initial value is0. SeeglBindTexture. πGL_TEXTURE_COORD_ARRAYβ returns one boolean value saying whether the texture coordinate array is enabled. The initial value isGL_FALSE. SeeglTexCoordPointer. β¨GL_TEXTURE_COORD_ARRAY_SIZEβ returns one value: the number of coordinates per element in the texture coordinate array. The initial value is4. SeeglTexCoordPointer. πGL_TEXTURE_COORD_ARRAY_STRIDEβ returns one value: the byte offset between consecutive elements in the texture coordinate array. The initial value is0. SeeglTexCoordPointer. π¦GL_TEXTURE_COORD_ARRAY_TYPEβ returns one value: the data type of the coordinates in the texture coordinate array. The initial value isGL_FLOAT. SeeglTexCoordPointer. πΈGL_TEXTURE_GEN_Qβ returns one boolean value saying whether automatic generation of the q texture coordinate is enabled. The initial value isGL_FALSE. SeeglTexGen. π₯GL_TEXTURE_GEN_Rβ returns one boolean value saying whether automatic generation of the r texture coordinate is enabled. The initial value isGL_FALSE. SeeglTexGen. π₯GL_TEXTURE_GEN_Sβ returns one boolean value saying whether automatic generation of the S texture coordinate is enabled. The initial value isGL_FALSE. SeeglTexGen. π₯GL_TEXTURE_GEN_Tβ returns one boolean value saying whether automatic generation of the T texture coordinate is enabled. The initial value isGL_FALSE. SeeglTexGen. π₯GL_TEXTURE_MATRIXβ returns sixteen values: the texture matrix on the top of the texture matrix stack. Initially this matrix is the identity matrix. SeeglPushMatrix. πGL_TEXTURE_STACK_DEPTHβ returns one value: the number of matrices on the texture matrix stack. The initial value is1. SeeglPushMatrix. πGL_UNPACK_ALIGNMENTβ returns one value: the byte alignment used for reading pixel data from memory. The initial value is4. SeeglPixelStore. πGL_UNPACK_IMAGE_HEIGHTβ returns one value: the image height used for reading pixel data from memory. The initial is0. SeeglPixelStore. π«Ά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 isGL_FALSE. SeeglPixelStore. πGL_UNPACK_ROW_LENGTHβ returns one value: the row length used for reading pixel data from memory. The initial value is0. SeeglPixelStore. πGL_UNPACK_SKIP_IMAGESβ returns one value: the number of pixel images skipped before the first pixel is read from memory. The initial value is0. SeeglPixelStore. π¦GL_UNPACK_SKIP_PIXELSβ returns one value: the number of pixel locations skipped before the first pixel is read from memory. The initial value is0. SeeglPixelStore. πΈ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 is0. SeeglPixelStore. π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 isGL_FALSE. SeeglPixelStore. πGL_VERTEX_ARRAYβ returns one boolean value saying whether the vertex array is enabled. The initial value isGL_FALSE. SeeglVertexPointer. πGL_VERTEX_ARRAY_SIZEβ returns one value: the number of coordinates per vertex in the vertex array. The initial value is4. SeeglVertexPointer. πGL_VERTEX_ARRAY_STRIDEβ returns one value: the byte offset between consecutive vertices in the vertex array. The initial value is0. SeeglVertexPointer. πGL_VERTEX_ARRAY_TYPEβ returns one value: the data type of each coordinate in the vertex array. The initial value isGL_FLOAT. SeeglVertexPointer. π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 to0, and the width and height are set to the width and height of the window into which the GL will do its rendering. SeeglViewport. πͺGL_ZOOM_Xβ returns one value: the x pixel zoom factor. The initial value is1. SeeglPixelZoom. πGL_ZOOM_Yβ returns one value: the y pixel zoom factor. The initial value is1. SeeglPixelZoom. π
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, andGL_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, andGL_UNPACK_SKIP_IMAGES. β¨
Deprecation tea, serve it cold:
GL_LINE_WIDTH_GRANULARITYwas deprecated in GL version 1.2. Its functionality was replaced byGL_SMOOTH_LINE_WIDTH_GRANULARITY. π«GL_LINE_WIDTH_RANGEwas deprecated in GL version 1.2. Its functionality was replaced byGL_SMOOTH_LINE_WIDTH_RANGE. π«GL_POINT_SIZE_GRANULARITYwas deprecated in GL version 1.2. Its functionality was replaced byGL_SMOOTH_POINT_SIZE_GRANULARITY. π«GL_POINT_SIZE_RANGEwas deprecated in GL version 1.2. Its functionality was replaced byGL_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_ENUMis generated ifpnameis not an accepted value. πGL_INVALID_OPERATIONis generated ifglGetis executed between the execution ofglBeginand the corresponding execution ofglEnd. π
π 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 oneglGetColorTable(3G)β the color-table oneglGetColorTableParameter(3G)β the color-table-parameter oneglGetConvolutionFilter(3G)β the convolution-filter oneglGetConvolutionParameter(3G)β the convolution-parameter oneglGetError(3G)β the error one π (you WILL be needing this one ngl)glGetHistogram(3G)β the histogram oneglGetHistogramParameter(3G)β the histogram-parameter oneglGetLight(3G)β the light one β¨glGetMap(3G)β the map oneglGetMaterial(3G)β the material oneglGetMinmax(3G)β the minmax oneglGetMinmaxParameter(3G)β the minmax-parameter oneglGetPixelMap(3G)β the pixel-map oneglGetPointerv(3G)β the pointer one (yes, with thev, that's literally the name, don't come for me)glGetPolygonStipple(3G)β the polygon-stipple oneglGetSeparableFilter(3G)β the separable-filter oneglGetString(3G)β the string one πglGetTexEnv(3G)β the tex-env oneglGetTexGen(3G)β the tex-gen oneglGetTexImage(3G)β the tex-image oneglGetTexLevelParameter(3G)β the tex-level-parameter oneglGetTexParameter(3G)β the tex-parameter oneglIsEnabled(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
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms