GLISENABLED(3G)
β¨ GLISENABLED β¨
okay bestie so this page lives in the 3G manual section (that's the OpenGL one, iykyk) π and it's literally just one lil question: is this thing on?
πΈ NAME πΈ
glIsEnabled β test whether a capability is enabled
π C SPECIFICATION π
GLboolean glIsEnabled( GLenum cap )
π¦ PARAMETERS π¦
capβ a symbolic constant that names one specific GL capability. that's it, that's the whole input π«Ά
π DESCRIPTION π
glIsEnabled hits you back with GL_TRUE when cap is an enabled capability, and GL_FALSE when it isn't. periodt.
and here's the tea on the starting lineup: initially every single capability is disabled except GL_DITHER β GL_DITHER is the one that starts out enabled π
these are all the capabilities that are accepted for cap, with where to go read about them:
GL_ALPHA_TESTβ seeglAlphaFuncGL_AUTO_NORMALβ seeglEvalCoordGL_BLENDβ seeglBlendFunc,glLogicOpGL_CLIP_PLANEiβ seeglClipPlaneGL_COLOR_ARRAYβ seeglColorPointerGL_COLOR_LOGIC_OPβ seeglLogicOpGL_COLOR_MATERIALβ seeglColorMaterialGL_COLOR_TABLEβ seeglColorTableGL_CONVOLUTION_1Dβ seeglConvolutionFilter1DGL_CONVOLUTION_2Dβ seeglConvolutionFilter2DGL_CULL_FACEβ seeglCullFaceGL_DEPTH_TESTβ seeglDepthFunc,glDepthRangeGL_DITHERβ seeglEnableGL_EDGE_FLAG_ARRAYβ seeglEdgeFlagPointerGL_FOGβ seeglFogGL_HISTOGRAMβ seeglHistogramGL_INDEX_ARRAYβ seeglIndexPointerGL_INDEX_LOGIC_OPβ seeglLogicOpGL_LIGHTiβ seeglLightModel,glLightGL_LIGHTINGβ seeglMaterial,glLightModel,glLightGL_LINE_SMOOTHβ seeglLineWidthGL_LINE_STIPPLEβ seeglLineStippleGL_MAP1_COLOR_4β seeglMap1GL_MAP1_INDEXβ seeglMap1GL_MAP1_NORMALβ seeglMap1GL_MAP1_TEXTURE_COORD_1β seeglMap1GL_MAP1_TEXTURE_COORD_2β seeglMap1GL_MAP1_TEXTURE_COORD_3β seeglMap1GL_MAP1_TEXTURE_COORD_4β seeglMap1GL_MAP2_COLOR_4β seeglMap2GL_MAP2_INDEXβ seeglMap2GL_MAP2_NORMALβ seeglMap2GL_MAP2_TEXTURE_COORD_1β seeglMap2GL_MAP2_TEXTURE_COORD_2β seeglMap2GL_MAP2_TEXTURE_COORD_3β seeglMap2GL_MAP2_TEXTURE_COORD_4β seeglMap2GL_MAP2_VERTEX_3β seeglMap2GL_MAP2_VERTEX_4β seeglMap2GL_MINMAXβ seeglMinmaxGL_NORMAL_ARRAYβ seeglNormalPointerGL_NORMALIZEβ seeglNormalGL_POINT_SMOOTHβ seeglPointSizeGL_POLYGON_SMOOTHβ seeglPolygonModeGL_POLYGON_OFFSET_FILLβ seeglPolygonOffsetGL_POLYGON_OFFSET_LINEβ seeglPolygonOffsetGL_POLYGON_OFFSET_POINTβ seeglPolygonOffsetGL_POLYGON_STIPPLEβ seeglPolygonStippleGL_POST_COLOR_MATRIX_COLOR_TABLEβ seeglColorTableGL_POST_CONVOLUTION_COLOR_TABLEβ seeglColorTableGL_RESCALE_NORMALβ seeglNormalGL_SCISSOR_TESTβ seeglScissorGL_SEPARABLE_2Dβ seeglSeparableFilter2DGL_STENCIL_TESTβ seeglStencilFunc,glStencilOpGL_TEXTURE_1Dβ seeglTexImage1DGL_TEXTURE_2Dβ seeglTexImage2DGL_TEXTURE_3Dβ seeglTexImage3DGL_TEXTURE_COORD_ARRAYβ seeglTexCoordPointerGL_TEXTURE_GEN_Qβ seeglTexGenGL_TEXTURE_GEN_Rβ seeglTexGenGL_TEXTURE_GEN_Sβ seeglTexGenGL_TEXTURE_GEN_Tβ seeglTexGenGL_VERTEX_ARRAYβ seeglVertexPointer
sixty-three constants, no skips, no shortcuts π
π NOTES π
if an error gets generated, glIsEnabled returns 0. that's your red flag bestie, don't ignore it π
these ones are only available if the GL version is 1.1 or greater:
GL_COLOR_LOGIC_OP, GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_INDEX_ARRAY, GL_INDEX_LOGIC_OP, GL_NORMAL_ARRAY, GL_POLYGON_OFFSET_FILL, GL_POLYGON_OFFSET_LINE, GL_POLYGON_OFFSET_POINT, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY
and these two need GL version 1.2 or greater:
GL_RESCALE_NORMAL, and GL_TEXTURE_3D
meanwhile this whole squad is only available if GL_ARB_imaging shows up when glGet is called with GL_EXTENSIONS:
GL_COLOR_TABLE, GL_CONVOLUTION_1D, GL_CONVOLUTION_2D, GL_HISTOGRAM, GL_MINMAX, GL_POST_COLOR_MATRIX_COLOR_TABLE, GL_POST_CONVOLUTION_COLOR_TABLE, and GL_SEPARABLE_2D
now listen. when theGL_ARB_multitextureextension is supported, these parameters return the associated value for the active texture unit: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, andGL_TEXTURE_STACK_DEPTH. likewise, these ones 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.
that's the whole multitexture situation, no cap π§
π₯ ERRORS π₯
GL_INVALID_ENUMgets generated ifcapis not an accepted value. like, you made that one up bestie, it's giving improv π«GL_INVALID_OPERATIONgets generated ifglIsEnabledis executed between the execution ofglBeginand the corresponding execution ofglEnd. do not try to vibe-check a capability mid-draw, that's illegal in OpenGL court π
π SEE ALSO π
glEnable(3G), glEnableClientState(3G), glGet(3G)
and that's the whole page, main character energy from top to bottom β¨ the footer line is just GLISENABLED(3G) all over again β same 3G manual section we started in β so consider yourself properly tagged and released, bestie. go check your caps, stay iconic ππ
π¦ 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 on : a language model's rewrite of the original, under its terms