Magnum::Platform::WindowlessWglContext::Configuration class

Configuration.

Contents

Public types

enum class Flag: int { ForwardCompatible = WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB, Debug = WGL_CONTEXT_DEBUG_BIT_ARB }
Context flag.
using Flags = Containers::EnumSet<Flag>
Context flags.

Public functions

auto flags() const -> Flags
Context flags.
auto setFlags(Flags flags) -> Configuration&
Set context flags.
auto addFlags(Flags flags) -> Configuration&
Add context flags.
auto clearFlags(Flags flags) -> Configuration&
Clear context flags.

Enum documentation

enum class Magnum::Platform::WindowlessWglContext::Configuration::Flag: int

Context flag.

Enumerators
ForwardCompatible

Forward compatible context

Debug

Create debug context

Typedef documentation

typedef Containers::EnumSet<Flag> Magnum::Platform::WindowlessWglContext::Configuration::Flags

Context flags.

Function documentation

Configuration& Magnum::Platform::WindowlessWglContext::Configuration::setFlags(Flags flags)

Set context flags.

Returns Reference to self (for method chaining)

Default is Flag::ForwardCompatible on desktop GL and no flags on OpenGL ES.

Configuration& Magnum::Platform::WindowlessWglContext::Configuration::addFlags(Flags flags)

Add context flags.

Returns Reference to self (for method chaining)

Unlike setFlags(), ORs the flags with existing instead of replacing them. Useful for preserving the defaults.

Configuration& Magnum::Platform::WindowlessWglContext::Configuration::clearFlags(Flags flags)

Clear context flags.

Returns Reference to self (for method chaining)

Unlike setFlags(), ANDs the inverse of flags with existing instead of replacing them. Useful for removing default flags.