Wrapper for GLX (drawable) surface handle. More...
#include </home/chochlik/devel/oglplus/include/oglplus/native/surface_glx.hpp>
Public Member Functions | |
int | Width (void) const |
Returns the width of the surface. | |
int | Height (void) const |
Returns the height of the surface. | |
void | SwapBuffers (void) |
Swaps the front and back buffers. | |
Static Public Member Functions | |
static SurfaceGLX | Current (void) |
Returns a wrapper for the currently bound GLX surface. More... | |
Wrapper for GLX (drawable) surface handle.
|
static |
Returns a wrapper for the currently bound GLX surface.
This function gets and wraps the current GLX drawable (+display). If no drawable is current it throws a runtime_error
.
std::runtime_error |