I
glIsEnabled
Chapter 9
243
glIsEnabled
glIsEnabled: test whether a capability is enabled.
C Specification
GLboolean glIsEnabled(
GLenum cap)
Parameters
cap Specifies a symbolic constant indicating a GL capability.
Description
glIsEnabled returns GL_TRUE if cap is an enabled capability and returns GL_FALSE
otherwise. Initially all capabilities except GL_DITHER are disabled; GL_DITHER is
initially enabled.
The following capabilities are accepted for cap:
Constant See
GL_ALPHA_TEST glAlphaFunc
GL_AUTO_NORMAL glEvalCoord
GL_BLEND glBlendFunc, glLogicOp
GL_CLIP_PLANEi glClipPlane
GL_COLOR_ARRAY glColorPointer
GL_COLOR_LOGIC_OP glLogicOp
GL_COLOR_MATERIAL glColorMaterial
GL_CULL_FACE glCullFace
GL_DEPTH_TEST glDepthFunc, glDepthRange
GL_DITHER glEnable
GL_EDGE_FLAG_ARRAY glEdgeFlagPointer
GL_FOG glFog
GL_INDEX_ARRAY glIndexPointer
GL_INDEX_LOGIC_OP glLogicOp
GL_LIGHTi glLightModel, glLight
GL_LIGHTING glMaterial, glLightModel, glLight
GL_LINE_SMOOTH glLineWidth
GL_LINE_STIPPLE glLineStipple