OpenGL context management.
CGLContextObj GLCtx
OpenGL context structure.
static void activate(GLCtx &ctx)
Make given context current.
static GLCtx create()
Returns new context or 0 in case of an error.
static void destroy(GLCtx &ctx)
destroys given context
static GLCtx current()
Return currently active context.