Open kibotu opened 9 years ago
State Variable | Description | Minimum/Initial Value | Get Function |
---|---|---|---|
GL_ARRAY_BUFFER_BINDING | Currently bound vertex attribute array binding | 0 | glGetIntegerv |
GL_ELEMENT_ARRAY_BUFFER_BINDING | Currently bound element array binding | 0 | glGetIntegerv |
GL_CULL_FACE_MODE | Current face culling mode | GL_BACK | glGetIntegerv |
GL_FRONT_FACE | Current front-facing vertex winding mode | GL_CCW | glGetIntegerv |
GL_SAMPLE_COVERAGE_VALUE | Current value specified for multisampling sample coverage value | 1 | glGetFloatv |
GL_SAMPLE_COVERAGE_INVERT | Current multisampling coverage value inversion setting | GL_FALSE | glGetBooleanv |
GL_TEXTURE_BINDING_2D | Current 2D texture binding | 0 | glGetIntegerv |
GL_TEXTURE_BINDING_CUBE_MAP | Current cubemap texture binding | 0 | glGetIntegerv |
GL_ACTIVE_TEXTURE | Current texture unit | 0 | glGetIntegerv |
GL_COLOR_WRITEMASK | Color buffer writable | GL_TRUE | glGetBooleanv |
GL_DEPTH_WRITEMASK | Depth buffer writable | GL_TRUE | glGetBooleanv |
GL_STENCIL_WRITEMASK | Current write mask for front-facing polygons | 1 | glGetIntegerv |
GL_STENCIL_BACK_WRITEMASK | Current write mask for back-facing polygons | 1 | glGetIntegerv |
GL_COLOR_CLEAR_VALUE | Current color buffer clear value | 0, 0, 0, 0 | glGetFloatv |
GL_DEPTH_CLEAR_VALUE | Current depth buffer clear value | 1 | glGetIntegerv |
GL_STENCIL_CLEAR_VALUE | Current stencil buffer clear value | 0 | glGetIntegerv |
GL_SCISSOR_BOX | Current offset and dimensions of the scissor box | 0, 0, w, h | glGetIntegerv |
GL_STENCIL_FUNC | #Current stencil test operator function | GL_ALWAYS | glGetIntegerv |
GL_STENCIL_VALUE_MASK | Current stencil test value mask | 1s | glGetIntegerv |
GL_STENCIL_REF | Current stencil test reference value | 0 | glGetIntegerv |
GL_STENCIL_FAIL | Current operation for stencil test failure | GL_KEEP | glGetIntegerv |
GL_STENCIL_PASS_DEPTH_FAIL | Current operation for when the stencil test passes, but the depth test fails | GL_KEEP | glGetIntegerv |
GL_STENCIL_PASS_DEPTH_PASS | Current operation when both the stencil and depth tests pass | GL_KEEP | glGetIntegerv |
GL_STENCIL_BACK_FUNC | Current back-facing stencil test operator function | GL_ALWAYS | glGetIntegerv |
GL_STENCIL_BACK_VALUE_MASK | Current back-facing stencil test value mask | 1s | glGetIntegerv |
GL_STENCIL_BACK_REF | Current back-facing stencil test reference value | 0 | glGetIntegerv |
GL_STENCIL_BACK_FAIL | Current operation for back-facing stencil test failure | GL_KEEP | glGetIntegerv |
GL_STENCIL_BACK_PASS_DEPTH_FAIL | Current operation for when the back-facing stencil test passes, but the depth test fails | GL_KEEP | glGetIntegerv |
GL_STENCIL_BACK_PASS_DEPTH_PASS | Current operation when both the back-facing stencil and depth tests pass | GL_KEEP | glGetIntegerv |
GL_DEPTH_FUNC | Current depth test comparison function | GL_LESS | glGetIntegerv |
GL_BLEND_SRC_RGB | Current source RGB blending coefficient | GL_ONE | glGetIntegerv |
GL_BLEND_SRC_ALPHA | Current source alpha blending coefficient | GL_ONE | glGetIntegerv |
GL_BLEND_DST_RGB | Current destination RGB blending coefficient | GL_ZERO | glGetIntegerv |
GL_BLEND_DST_ALPHA | Current destination alpha blending coefficient | GL_ZERO | glGetIntegerv |
GL_BLEND_EQUATION | Current blend equation operator | GL_FUNC_ADD | glGetIntegerv |
GL_BLEND_EQUATION_RGB | Current RGB blend equation operator | GL_FUNC_ADD | glGetIntegerv |
GL_BLEND_EQUATION_ALPHA | Current alpha blend equation operator | GL_FUNC_ADD | glGetIntegerv |
GL_BLEND_COLOR | Current blend color | 0, 0, 0, 0 | glGetFloatv |
GL_UNPACK_ALIGNMENT | Current byte boundary alignment for pixel unpacking | 4 | glGetIntegerv |
GL_PACK_ALIGNMENT | Current byte boundary alignment for pixel packing | 4 | glGetIntegerv |
GL_CURRENT_PROGRAM | Currently bound shader program | 0 | glGetIntegerv |
GL_RENDERBUFFER_BINDING | Currently bound renderbuffer | 0 | glGetIntegerv |
GL_FRAMEBUFFER_BINDING | Currently bound framebuffer | 0 | glGetIntegerv |
(based on http://blog.naver.com/leejae44/50175095535)