static GLContextPtr create(SimpleWindowPtr window, HardwareContextHandle context={})
Create a new context.
HardwareContextHandle _contextHandle
std::shared_ptr< class SimpleWindow > SimpleWindowPtr
SimpleWindow shared pointer.
void * HardwareContextHandle
Platform dependent definition of a hardware context.
HardwareContextHandle contextHandle() const
Return OpenGL context handle.
bool isValid() const
Return if context is valid.
std::shared_ptr< class GLContext > GLContextPtr
GLContext shared pointer.