Structure defining the settings of the OpenGL context attached to a window.
Uint32 attributeFlags
The attribute flags to create the context with.
unsigned int depthBits
Bits of the depth buffer.
unsigned int majorVersion
Major number of the context version to create.
unsigned int minorVersion
Minor number of the context version to create.
unsigned int stencilBits
Bits of the stencil buffer.
unsigned int antialiasingLevel
Level of antialiasing.
ContextSettings(unsigned int depth=0, unsigned int stencil=0, unsigned int antialiasing=0, unsigned int major=1, unsigned int minor=1, unsigned int attributes=Default, bool sRgb=false)
Default constructor.
bool sRgbCapable
Whether the context framebuffer is sRGB capable.
Attribute
Enumeration of the context attribute flags.
@ Default
Non-debug, compatibility context (this and the core attribute are mutually exclusive)