Module context
source code
Base class for OpenGL contexts.
This module wraps large parts of per-context state.
To Do:
-
Provide convenience setters for
glBlendFunc
via
blend_func=("SRC_ALPHA",
"ONE_MINUS_SRC_ALPHA")
.
-
Add listing of all bound textures, buffers, etc.
-
Do we need indexed variants for
glEnable
?
-
Wrap
glPatchParameter
.
-
Implement multiple viewports using
glViewportIndexed
,
glViewportArray
, glScissorIndexed
, and
glScissorArray
.
-
Wrap
glSampleCoverage
, glSampleMaski
,
glMinSampleShading
, GL_SAMPLE_COVERAGE_VALUE
,
and GL_SAMPLE_COVERAGE_INVERT
.
-
Wrap
glReadPixels
and related framebuffer copy functions.
-
Add indexed getters for
GL_TRANSFORM_FEEDBACK_BUFFER_START
,
GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
,
GL_UNIFORM_BUFFER_SIZE
and
GL_UNIFORM_BUFFER_START
.
-
Add getters for
GL_CLIP_DISTANCEi
,
GL_DEPTH_CLAMP
, GL_FRAMEBUFFER_SRGB
,
GL_MULTISAMPLE
, GL_PRIMITIVE_RESTART
,
GL_TEXTURE_CUBE_MAP_SEAMLESS
,
GL_SAMPLE_ALPHA_TO_ONE
,
GL_SAMPLE_ALPHA_TO_COVERAGE
,
GL_SAMPLE_COVERAGE
, GL_SAMPLE_SHADING
, and
GL_SAMPLE_MASK
.
-
Implement stencil buffers using
GL_STENCIL_BACK_FUNC
,
GL_STENCIL_FUNC
, GL_STENCIL_BACK_REF
,
GL_STENCIL_REF
, GL_STENCIL_BACK_VALUE_MASK
,
GL_STENCIL_BACK_WRITEMASK
,
GL_STENCIL_VALUE_MASK
, GL_STENCIL_WRITEMASK
,
GL_STENCIL_BACK_FAIL
,
GL_STENCIL_BACK_PASS_DEPTH_FAIL
,
GL_STENCIL_BACK_PASS_DEPTH_PASS
,
GL_STENCIL_FAIL
, GL_STENCIL_PASS_DEPTH_FAIL
,
GL_STENCIL_PASS_DEPTH_PASS
, etc.
Author:
Stephan Wenger
Date:
2012-02-29
|
__package__ = ' glitter.contexts '
|