glEnable
glEnable is an OpenGL API function used to enable a capability in the current OpenGL context. It takes a single argument, cap, a GLenum that identifies the capability to enable. The enabled state is part of the context’s global state and persists until it is disabled with glDisable. Enabling a capability typically changes how subsequent rendering operations are processed or tested.
Common capabilities include depth testing (GL_DEPTH_TEST), blending (GL_BLEND), face culling (GL_CULL_FACE), scissor testing (GL_SCISSOR_TEST), stencil testing
In modern OpenGL, glEnable controls state that affects a particular stage or test rather than the fixed-function
Usage notes include ensuring the capability is supported by the current context and that any required buffers