GLContext
Description
- Derived from
-
GraphicsContext abstract
IRenderContextDependent - Extended by
-
OpenGLContext sealed
OpenGLESContext sealed
Abstract base class for IGraphicsContext implementations that use a GL-style API.
Public / Attributes
DebugFrequentErrorChecks
Perform GL error checks with GLBase.ErrorReset2 more often?
Defaults to false
.
DebugOutputSourceAndErrors
Output GLSL source code and compiler / linker errors to the local GLSL program cache directory (configured via IGraphicsContextFactory.ShaderRepository)?
Defaults to false
.
DefaultFrameBufferSrgb
Enables the sRGB fix (see remarks) for the default framebuffer, whose behaviour is implementation-specific.
When the sRGB fix is enabled, GL.FRAMEBUFFER_SRGB resp. GLES.FRAMEBUFFER_SRGB_EXT will be disabled with when a swap chain writes to the default framebuffer object. Otherwise, it will stay enabled (after having been set by IGraphicsContext.SetRenderTarget). Defaults to true
.
- See also