bool setActive(bool active)
Activate or deactivate explicitly the context.
Context & operator=(const Context &)=delete
Deleted copy assignment.
static const Context * getActiveContext()
Get the currently active context.
Context(const Context &)=delete
Deleted copy constructor.
const ContextSettings & getSettings() const
Get the settings of the context.
Context(const ContextSettings &settings, Vector2u size)
Construct a in-memory context.
Context(Context &&context) noexcept
Move constructor.
static bool isExtensionAvailable(std::string_view name)
Check whether a given OpenGL extension is available.
static GlFunctionPointer getFunction(const char *name)
Get the address of an OpenGL function.
Context & operator=(Context &&context) noexcept
Move assignment.
static std::uint64_t getActiveContextId()
Get the currently active context's ID.
Structure defining the settings of the OpenGL context attached to a window.