GL_APICALL void GL_APIENTRY glEnable(
GLenum cap
);
| Name | Description | |
|---|---|---|
| in | cap | Name of feature to enable |
Enables specific GL features.
You can set cap to the following values. You cannot specify GL_EARLY_DEPTH_TEST_DMP from POD.
GL_COLOR_LOGIC_OP | Enables logical operations on pixels. |
|---|---|
GL_BLEND | Enables the blend feature. |
GL_DEPTH_TEST | Enables depth tests. |
GL_STENCIL_TEST | Enables stencil tests. |
GL_SCISSOR_TEST | Enables scissoring. |
GL_CULL_FACE | Enables culling. |
GL_POLYGON_OFFSET_FILL | Enables polygon offsets. |
GL_EARLY_DEPTH_TEST_DMP | Enables early depth tests. If this function is enabled, the viewport offset (X, Y) must be (0, 0). |
GL_DEPTH_STENCIL_COPY_DMP | Enables the depth stencil copy feature. |
This function generates the following errors.
GL_INVALID_ENUM | The cap argument was set to an invalid value. |
|---|---|
GL_INVALID_OPERATION | This function was called without any command-list objects bound. |
GL_DEPTH_STENCIL_COPY_DMP for the depth stencil copy feature.CONFIDENTIAL