GLENABLECLIENTSTATE(3G)
β¨ GLENABLECLIENTSTATE β¨
okay bestie, welcome to GLENABLECLIENTSTATE(3G) β the section 3G OpenGL page about turning client-side capabilities on and off π
this is the one that flips the little switches so your arrays actually show up when you render. no cap.
πΈ NAME πΈ
glEnableClientState, glDisableClientState β enable or disable a client-side capability π
π C SPECIFICATION π
void glEnableClientState( GLenum cap); 1.1 )
π¦ PARAMETERS π¦
1.1β specifies the capability to enable β¨. these symbolic constants are the ones that get accepted:GL_COLOR_ARRAY,GL_EDGE_FLAG_ARRAY,GL_INDEX_ARRAY,GL_NORMAL_ARRAY,GL_TEXTURE_COORD_ARRAY, andGL_VERTEX_ARRAY.
π C SPECIFICATION π
void glDisableClientState( GLenum cap); 1.1 )
π PARAMETERS π
1.1β specifies the capability to disable π.
β DESCRIPTION β
glEnableClientState and glDisableClientState are the duo that turn individual client-side capabilities on or off, one at a time π«Ά. by default, every single client-side capability starts out disabled β so if your stuff isn't rendering, check this first, iykyk π.
both glEnableClientState and glDisableClientState take a single argument, 1.1, and that argument can be any one of these iconic values π
GL_COLOR_ARRAYβ if enabled, the color array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglColorPointer. πGL_EDGE_FLAG_ARRAYβ if enabled, the edge flag array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglEdgeFlagPointer. π¦GL_INDEX_ARRAYβ if enabled, the index array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglIndexPointer. πΈGL_NORMAL_ARRAYβ if enabled, the normal array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglNormalPointer. βGL_TEXTURE_COORD_ARRAYβ if enabled, the texture coordinate array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglTexCoordPointer. πGL_VERTEX_ARRAYβ if enabled, the vertex array is enabled for writing and gets used during rendering whenglArrayElement,glDrawArrays,glDrawElement, orglDrawRangeElementsis called. seeglVertexPointer. π
π NOTES π
glEnableClientStateis available only if the GL version is1.1or greater. no old-school GL for this one, sorry bestie π.- if
GL_ARB_multitextureis supported, enabling and disablingGL_TEXTURE_COORD_ARRAYaffects the active client texture unit. that active client texture unit is controlled withglClientActiveTextureARB. π§
π ERRORS π
GL_INVALID_ENUMis generated if1.1is not an accepted value. so like, don't just pass vibes in there β.
π¨glEnableClientStateis not allowed between the execution ofglBeginand the correspondingglEndβ but an error may or may not be generated. and if no error is generated, the behavior is undefined. so fr fr, just don't do it. π
π₯ SEE ALSO π₯
glArrayElement(3G)glClientActiveTextureARB(3G)glColorPointer(3G)glDrawArrays(3G)glDrawElements(3G)glEdgeFlagPointer(3G)glEnable(3G)glGetPointerv(3G)glIndexPointer(3G)glInterleavedArrays(3G)glNormalPointer(3G)glTexCoordPointer(3G)glVertexPointer(3G)
and that's the whole page, bestie π
the little footer down at the bottom just echoes the name right back at you β GLENABLECLIENTSTATE(3G) β no extra version or date tea to spill, it's literally just the title doing a lil encore. go enable some arrays and slay β¨π«Ά
π¦ 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