glIsEnabled

NAME

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. The following capabilities are accepted for cap:
GL_ALPHA_TEST
see glAlphaFunc.

GL_AUTO_NORMAL
see glEvalCoord.

GL_BLEND
see glBlendFunc.

GL_CLIP_PLANEi
see glClipPlane.

GL_COLOR_MATERIAL
see glColorMaterial.

GL_CULL_FACE
see glCullFace.

GL_DEPTH_TEST
see glDepthFunc and glDepthRange.

GL_DITHER
see glEnable.

GL_FOG
see glFog.

GL_LIGHTi
see glLightModel and glLight.

GL_LIGHTING
see glMaterial, glLightModel, and glLight.

GL_LINE_SMOOTH
see glLineWidth.

GL_LINE_STIPPLE
see glLineStipple.

GL_LOGIC_OP
see glLogicOp.

GL_MAP1_COLOR_4
see glMap1.

GL_MAP1_INDEX
see glMap1.

GL_MAP1_NORMAL
see glMap1.

GL_MAP1_TEXTURE_COORD_1
see glMap1.

GL_MAP1_TEXTURE_COORD_2
see glMap1.

GL_MAP1_TEXTURE_COORD_3
see glMap1.

GL_MAP1_TEXTURE_COORD_4
see glMap1.

GL_MAP1_VERTEX_3
see glMap1.

GL_MAP1_VERTEX_4
see glMap1.

GL_MAP2_COLOR_4
see glMap2.

GL_MAP2_INDEX
see glMap2.

GL_MAP2_NORMAL
see glMap2.

GL_MAP2_TEXTURE_COORD_1
see glMap2.

GL_MAP2_TEXTURE_COORD_2
see glMap2.

GL_MAP2_TEXTURE_COORD_3
see glMap2.

GL_MAP2_TEXTURE_COORD_4
see glMap2.

GL_MAP2_VERTEX_3
see glMap2.

GL_MAP2_VERTEX_4
see glMap2.

GL_NORMALIZE
see glNormal.

GL_POINT_SMOOTH
see glPointSize.

GL_POLYGON_SMOOTH
see glPolygonMode.

GL_POLYGON_STIPPLE
see glPolygonStipple.

GL_SCISSOR_TEST
see glScissor.

GL_STENCIL_TEST
see glStencilFunc and glStencilOp.

GL_TEXTURE_1D
see glTexImage1D.

GL_TEXTURE_2D
see glTexImage2D.

GL_TEXTURE_GEN_Q
see glTexGen.

GL_TEXTURE_GEN_R
see glTexGen.

GL_TEXTURE_GEN_S
see glTexGen.

GL_TEXTURE_GEN_T
see glTexGen.

NOTES

If an error is generated, glIsEnabled returns zero.

ERRORS

GL_INVALID_ENUM is generated if cap is not an accepted value.

GL_INVALID_OPERATION is generated if glIsEnabled is called between a call to glBegin and the corresponding call to glEnd.

SEE ALSO

glEnable


back to the OpenGL index page


© 1995 Uwe Behrens. All rights reserved.