glIsEnabled Function

Syntax

GL_APICALL GLboolean GL_APIENTRY glIsEnabled(
     GLenum cap
);

Parameters

Name Description
in cap Name of feature to check

Return Values

Returns GL_TRUE when the target is enabled. Returns GL_FALSE otherwise.

Description

Determines whether a specific GL feature is enabled.

Returns GL_TRUE if it is enabled and GL_FALSE if it is disabled.

You can set cap to the following values.

GL_COLOR_LOGIC_OPDetermines whether logical operations are enabled for pixels.
GL_BLENDDetermines whether blend features are enabled.
GL_DEPTH_TESTDetermines whether depth tests are enabled.
GL_STENCIL_TESTDetermines whether stencil tests are enabled.
GL_SCISSOR_TESTDetermines whether scissoring is enabled.
GL_CULL_FACEDetermines whether culling is enabled.
GL_POLYGON_OFFSET_FILLDetermines whether polygon offsets are enabled.
GL_EARLY_DEPTH_TEST_DMPDetermines whether early depth tests are enabled.
GL_DEPTH_STENCIL_COPY_DMPDetermines whether the depth stencil copy feature is enabled.

You cannot specify GL_EARLY_DEPTH_TEST_DMP with POD.

This function generates the following errors.

GL_INVALID_ENUMThe cap argument was set to an invalid value.

Revision History

2010/08/12
Added description of GL_DEPTH_STENCIL_COPY_DMP for the depth stencil copy feature.
2010/01/07
Initial version.

CONFIDENTIAL