glEnable — enable or disable server-side GL capabilities
| ||GLenum cap |
| ||GLenum cap |
Specifies a symbolic constant indicating a GL capability.
glEnable and glDisable enable and disable various capabilities. Use glIsEnabled or glGet to determine the current setting of any capability. The initial value for each capability with the exception of
GL_FALSE. The initial value for
glEnable and glDisable take a single argument,
cap, which can assume one of the following values:
If enabled, blend the computed fragment color values with the values in the color buffers. See glBlendFunc.
If enabled, cull polygons based on their winding in window coordinates. See glCullFace.
If enabled, do depth comparisons and update the depth buffer. Note that even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not updated if the depth test is disabled. See glDepthFunc and glDepthRangef.
If enabled, dither color components or indices before they are written to the color buffer.
If enabled, an offset is added to depth values of a polygon's fragments before the depth comparison is performed. See glPolygonOffset.
Enables primitive restarting. If enabled, any one of the draw commands which transfers a set of generic attribute array elements to the GL will restart the primitive when the index of the vertex is equal to where n is 8, 16 or 32 if the type is
If enabled, compute a temporary coverage value where each bit is determined by the alpha value at the corresponding sample location. The temporary coverage value is then ANDed with the fragment coverage value.
If enabled, the fragment's coverage is ANDed with the temporary coverage value. If
GL_SAMPLE_COVERAGE_INVERT is set to
GL_TRUE, invert the coverage value. See glSampleCoverage.
If enabled, the fragment's coverage is ANDed with the coverage value
GL_SAMPLE_MASK_VALUE. See glSampleMaski.
If enabled, discard fragments that are outside the scissor rectangle. See glScissor.
GL_INVALID_ENUM is generated if
cap is not one of the values listed previously.
open.gl - Depth and Stencil Buffers
open.gl - Transform Feedback
opengl-tutorial.org - Tutorial 10 : Transparency
opengl-tutorial.org - Tutorial 4 : A Colored Cube
opengl-tutorial.org - Tutorial 5 : A Textured Cube
|OpenGL ES API Version|
Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.