Wrapper for WGL (DC) surface handle. More...
#include </home/chochlik/devel/oglplus/include/oglplus/native/surface_wgl.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 SurfaceWGL | Current (void) |
| Returns a wrapper for the currently bound WGL surface. More... | |
Wrapper for WGL (DC) surface handle.
|
static |
Returns a wrapper for the currently bound WGL surface.
This function gets and wraps the current WGL Device Context. If no DC is current it throws a runtime_error.
| std::runtime_error |