2003-2004 Silicon Graphics, Inc.
glIsEnabled 3G
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.

The following capabilities are accepted for cap:

`Constant` |  | `See function:`
--- | --- | ---
`GL_ALPHA_TEST` |  | glAlphaFunc
`GL_BLEND` |  | glBlendFunc, glLogicOp
`GL_CLIP_PLANEi` |  | glClipPlane
`GL_COLOR_ARRAY` |  | glColorPointer
`GL_COLOR_LOGIC_OP` |  | glLogicOp
`GL_COLOR_MATERIAL` |  | glMaterial
`GL_CULL_FACE` |  | glCullFace
`GL_DEPTH_TEST` |  | glDepthFunc, glDepthRange
`GL_DITHER` |  | glEnable
`GL_FOG` |  | glFog
`GL_LIGHTi` |  | glLight, glLightModel
`GL_LIGHTING` |  | glLight, glLightModel, glMaterial
`GL_LINE_SMOOTH` |  | glLineWidth
`GL_MATRIX_INDEX_ARRAY_OES` |  | glEnableClientState
`GL_MATRIX_PALETTE_OES` |  | glMatrixMode
`GL_MULTISAMPLE` |  | glEnable
`GL_NORMAL_ARRAY` |  | glNormalPointer
`GL_NORMALIZE` |  | glNormal
`GL_POINT_SIZE_ARRAY_OES` |  | glEnableClientState
`GL_POINT_SMOOTH` |  | glPointSize
`GL_POINT_SPRITE_OES` |  | glTexEnv
`GL_POLYGON_OFFSET_FILL` |  | glPolygonOffset
`GL_RESCALE_NORMAL` |  | glNormal
`GL_SAMPLE_ALPHA_TO_COVERAGE` |  | glSampleCoverage
`GL_SAMPLE_ALPHA_TO_ONE` |  | glSampleCoverage
`GL_SAMPLE_COVERAGE` |  | glSampleCoverage
`GL_SCISSOR_TEST` |  | glScissor
`GL_STENCIL_TEST` |  | glStencilFunc, glStencilOp
`GL_TEXTURE_2D` |  | glTexImage2D
`GL_TEXTURE_COORD_ARRAY` |  | glTexCoordPointer
`GL_VERTEX_ARRAY` |  | glVertexPointer
`GL_WEIGHT_ARRAY_OES` |  | glEnableClientState

## Notes

If an error is generated, `glIsEnabled` returns 0.

## Errors

`GL_INVALID_ENUM` is generated if cap is not an accepted value.

## See Also

glEnable, glEnableClientState

## Copyright

Copyright 2003-2004 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.