Light | Dark

# docs.GL

OpenGL 4
OpenGL 3
OpenGL 2
OpenGL ES 3
OpenGL ES 2

# 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. Initially all capabilities except `GL_DITHER` are disabled; `GL_DITHER` is initially enabled.

The following capabilities are accepted for `cap`:

Constant | See
--- | ---
`GL_BLEND` | glBlendFunc
`GL_CULL_FACE` | glCullFace
`GL_DEPTH_TEST` | glDepthFunc, glDepthRangef
`GL_DITHER` | glEnable
`GL_POLYGON_OFFSET_FILL` | glPolygonOffset
`GL_SAMPLE_ALPHA_TO_COVERAGE` | glSampleCoverage
`GL_SAMPLE_COVERAGE` | glSampleCoverage
`GL_SCISSOR_TEST` | glScissor
`GL_STENCIL_TEST` | glStencilFunc, glStencilOp

## Notes

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

## Errors

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

## Tutorials

## See Also

glEnable, glGet

## Copyright

Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/.

Think you can improve this page? Edit this page on GitHub.