glIsEnabled Function
GL_APICALL GLboolean GL_APIENTRY glIsEnabled(
GLenum cap
);
| Name | Description | |
|---|---|---|
| in | cap | Name of feature to check |
GL_TRUE when the target is enabled. Returns GL_FALSE otherwise. 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_OP | Determines whether logical operations are enabled for pixels. |
|---|---|
| GL_BLEND | Determines whether blend features are enabled. |
| GL_DEPTH_TEST | Determines whether depth tests are enabled. |
| GL_STENCIL_TEST | Determines whether stencil tests are enabled. |
| GL_SCISSOR_TEST | Determines whether scissoring is enabled. |
| GL_CULL_FACE | Determines whether culling is enabled. |
| GL_POLYGON_OFFSET_FILL | Determines whether polygon offsets are enabled. |
| GL_EARLY_DEPTH_TEST_DMP | Determines whether early depth tests are enabled. |
GL_DEPTH_STENCIL_COPY_DMP | Determines 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_ENUM | The cap argument was set to an invalid value. |
|---|
GL_DEPTH_STENCIL_COPY_DMP for the depth stencil copy feature.CONFIDENTIAL