class
GLConfigurationOpenGL context configuration.
Contents
- Reference
The created window is always with double-buffered OpenGL context and 24bit depth buffer.
Public types
- enum class Flag: int { Debug = SDL_GL_CONTEXT_DEBUG_FLAG, RobustAccess = SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG, ResetIsolation = SDL_GL_CONTEXT_RESET_ISOLATION_FLAG }
- Context flag.
-
using Flags = Containers::
EnumSet<Flag> - Context flags.
Public functions
- auto flags() const -> Flags
- Context flags.
- auto setFlags(Flags flags) -> GLConfiguration&
- Set context flags.
-
auto version() const -> GL::
Version - Context version.
-
auto setVersion(GL::
Version version) -> GLConfiguration& - Set context version.
- auto sampleCount() const -> Int
- Sample count.
- auto setSampleCount(Int count) -> GLConfiguration&
- Set sample count.
- auto isSRGBCapable() const -> bool
- sRGB-capable default framebuffer
- auto setSRGBCapable(bool enabled) -> GLConfiguration&
- Set sRGB-capable default framebuffer.
Enum documentation
enum class Magnum:: Platform:: Sdl2Application:: GLConfiguration:: Flag: int
Context flag.
Enumerators | |
---|---|
Debug |
Create debug context |
RobustAccess |
Create context with robust access |
ResetIsolation |
Create context with reset isolation |
Typedef documentation
typedef Containers:: EnumSet<Flag> Magnum:: Platform:: Sdl2Application:: GLConfiguration:: Flags
Context flags.
Function documentation
GLConfiguration& Magnum:: Platform:: Sdl2Application:: GLConfiguration:: setFlags(Flags flags)
Set context flags.
Returns | Reference to self (for method chaining) |
---|
Default is no flag. See also GL::
GL:: Version Magnum:: Platform:: Sdl2Application:: GLConfiguration:: version() const
Context version.
GLConfiguration& Magnum:: Platform:: Sdl2Application:: GLConfiguration:: setVersion(GL:: Version version)
Set context version.
If requesting version greater or equal to OpenGL 3.1, core profile is used. The created context will then have any version which is backwards-compatible with requested one. Default is GL::
GLConfiguration& Magnum:: Platform:: Sdl2Application:: GLConfiguration:: setSampleCount(Int count)
Set sample count.
Returns | Reference to self (for method chaining) |
---|
Default is 0
, thus no multisampling. See also GL::
bool Magnum:: Platform:: Sdl2Application:: GLConfiguration:: isSRGBCapable() const
sRGB-capable default framebuffer
GLConfiguration& Magnum:: Platform:: Sdl2Application:: GLConfiguration:: setSRGBCapable(bool enabled)
Set sRGB-capable default framebuffer.
Returns | Reference to self (for method chaining) |
---|
Default is false
. See also GL::