Class holding a valid drawing context.
bool setActive(bool active)
Activate or deactivate explicitly the context.
static bool isExtensionAvailable(const char *name)
Check whether a given OpenGL extension is available.
Context(const ContextSettings &settings, unsigned int width, unsigned int height)
Construct a in-memory context.
static const Context * getActiveContext()
Get the currently active context.
const ContextSettings & getSettings() const
Get the settings of the context.
static Uint64 getActiveContextId()
Get the currently active context's ID.
static GlFunctionPointer getFunction(const char *name)
Get the address of an OpenGL function.
Structure defining the settings of the OpenGL context attached to a window.