Graphics Reference
In-Depth Information
void
glEnable
(GLenum
capability
)
specifies the feature that should be turned on and affects
all rendering until the feature is turned off
capabi1ity
void
glDisable
(GLenum
capability
)
specifies the feature that should be turned off
capabi1ity
Additionally, you can determine if a feature is in use by calling the
following function:
GLboolean
glIsEnabled
(GLenum
capability
)
specifies which feature should be examined to determine
if it's enabled
capability
The capabilities controlled by
glEnable
and
glDisable
are listed in
Table 15-3.
Table 15-3
OpenGL ES 3.0 Capabilities Controlled by
glEnable
and
glDisable
Capability
Description
GL_CULL_FACE
Discard polygons whose vertex
winding order is opposite of
the specified front-facing mode
(
GL_CW
or
GL_CCW
, as specified
by
glFrontFace
)
GL_POLYGON_OFFSET_FILL
Offset the depth value of a
fragment to aid in rendering
coplanar geometry
GL_SCISSOR_TEST
Further restrict rendering to the
scissor box
(continues)