Wrapper for a valid GLX context handle. More...
#include </home/chochlik/devel/oglplus/include/oglplus/native/context_glx.hpp>
Public Member Functions | |
void | MakeCurrent (const SurfaceGLX &surface) |
Makes the context current on this thread. | |
void | Release (void) |
Releases the current context without binding a new one. | |
Static Public Member Functions | |
static ContextGLX | Current (void) |
Returns a wrapper for the currently bound GLX context. More... | |
Wrapper for a valid GLX context handle.
|
static |
Returns a wrapper for the currently bound GLX context.
This function gets and wraps the current GLX context (+display). If no context is current it throws a runtime_error
.
std::runtime_error |