class
GLConfigurationOpenGL context configuration.
Contents
- Reference
Double-buffered RGBA window with depth and stencil buffers.
Public types
- enum class Flag: int { Debug = GLUT_DEBUG }
- 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.
Enum documentation
Typedef documentation
typedef Containers:: EnumSet<Flag> Magnum:: Platform:: GlutApplication:: GLConfiguration:: Flags
Context flags.
Function documentation
GLConfiguration& Magnum:: Platform:: GlutApplication:: GLConfiguration:: setFlags(Flags flags)
Set context flags.
Returns | Reference to self (for method chaining) |
---|
Default is no flag.
GLConfiguration& Magnum:: Platform:: GlutApplication:: 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:: GlutApplication:: GLConfiguration:: setSampleCount(Int count)
Set sample count.
Returns | Reference to self (for method chaining) |
---|
Default is 0
, thus no multisampling. The actual sample count is ignored, GLUT either enables it or disables. See also GL::