void * HardwareContextHandle
Platform dependent definition of a hardware context.
Definition: GLContext.h:30
std::shared_ptr< class GLContext > GLContextPtr
GLContext shared pointer.
Definition: GLContext.h:37
std::shared_ptr< class SimpleWindow > SimpleWindowPtr
SimpleWindow shared pointer.
Definition: GLContext.h:34
An OpenGL context singleton.
Definition: GLContext.h:42
int makeCurrent()
Make the context "current" before execution of OpenGL operations.
bool isValid() const
Return if context is valid.
Definition: GLContext.h:60
static GLContextPtr create(SimpleWindowPtr window, HardwareContextHandle context={})
Create a new context.
Definition: GLContext.h:45
HardwareContextHandle contextHandle() const
Return OpenGL context handle.
Definition: GLContext.h:54