glEnablei

glEnable: man3/glEnable.xml

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_DITHER and GL_MULTISAMPLE is GL_FALSE. The initial value for GL_DITHER and GL_MULTISAMPLE is GL_TRUE. Both glEnable and glDisable take a single argument, cap, which can assume one of the following values: Some of the GL's capabilities are indicated. glEnablei and glDisablei enable and disable indexed capabilities.

GL_PRIMITIVE_RESTART is available only if the GL version is 3.1 or greater. GL_TEXTURE_CUBE_MAP_SEAMLESS is available only if the GL version is 3.2 or greater. Any token accepted by glEnable or glDisable is also accepted by glEnablei and glDisablei, but if the capability is not indexed, the maximum value that index may take is zero. In general, passing an indexed capability to glEnable or glDisable will enable or disable that capability for all indices, resepectively.

@OpenGL_Version(OGLIntroducedIn.V3P0)
fn_glEnablei glEnablei;

See Also

glActiveTexture, glBlendFunc, glCullFace, glDepthFunc, glDepthRange, glGet, glIsEnabled, glLineWidth, glLogicOp, glPointSize, glPolygonMode, glPolygonOffset, glSampleCoverage, glScissor, glStencilFunc, glStencilOp, glTexImage1D, glTexImage2D, glTexImage3D

Meta