| State Variable | Description | Attribute Group | Initial Value | Get Command |
|---|---|---|---|---|
GL_SCISSOR_TEST | Scissoring enabled | scissor/enable | GL_FALSE | glIsEnabled() |
GL_SCISSOR_BOX | Scissor box | scissor | -- | glGetIntegerv() |
GL_STENCIL_TEST | Stenciling enabled | stencil-buffer/ enable | GL_FALSE | glIsEnabled() |
GL_STENCIL_FUNC | Stencil function | stencil-buffer | GL_ALWAYS | glGetIntegerv() |
GL_STENCIL_VALUE_MASK | Stencil mask | stencil-buffer | 1's | glGetIntegerv() |
GL_STENCIL_REF | Stencil reference value | stencil-buffer | 0 | glGetIntegerv() |
GL_STENCIL_FAIL | Stencil fail action | stencil-buffer | GL_KEEP | glGetIntegerv() |
GL_STENCIL_PASS_DEPTH_FAI L | Stencil depth buffer fail action | stencil-buffer | GL_KEEP | glGetIntegerv() |
GL_STENCIL_PASS_DEPTH_PAS S | Stencil depth buffer pass action | stencil-buffer | GL_KEEP | glGetIntegerv() |
GL_ALPHA_TEST | Alpha test enabled | color-buffer/e nable | GL_FALSE | glIsEnabled() |
GL_ALPHA_TEST_FUNC | Alpha test function | color-buffer | GL_ALWAYS | glGetIntegerv() |
GL_ALPHA_TEST_REF | Alpha test reference value | color-buffer | 0 | glGetIntegerv() |
GL_DEPTH_TEST | Depth buffer enabled | depth-buffer/ enable | GL_FALSE | glIsEnabled() |
GL_DEPTH_FUNC | Depth buffer test function | depth-buffer | GL_LESS | glGetIntegerv() |
GL_BLEND | Blending enabled | color-buffer/e nable | GL_FALSE | glIsEnabled() |
GL_BLEND_SRC | Blending source function | color-buffer | GL_ONE | glGetIntegerv() |
GL_BLEND_DST | Blending destination function | color-buffer | GL_ZERO | glGetIntegerv() |
GL_LOGIC_OP | Logical operation enabled | color-buffer/e nable | GL_FALSE | glIsEnabled() |
GL_LOGIC_OP_MODE | Logical operation function | color-buffer | GL_COPY | glGetIntegerv() |
GL_DITHER | Dithering enabled | color-buffer/e nable | GL_TRUE | glIsEnabled() |
OpenGL Programming Guide