Wrapper for a valid WGL context handle. More...
#include </home/chochlik/devel/oglplus/include/oglplus/native/context_wgl.hpp>
Public Member Functions | |
void | MakeCurrent (const SurfaceWGL &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 ContextWGL | Current (void) |
Returns a wrapper for the currently bound WGL context. More... | |
Wrapper for a valid WGL context handle.
|
static |
Returns a wrapper for the currently bound WGL context.
This function gets and wraps the current WGL rendering context. If no context is current it throws a runtime_error
.
std::runtime_error |