OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::native::SurfaceWGL Class Reference

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...
 

Detailed Description

Wrapper for WGL (DC) surface handle.

Member Function Documentation

static SurfaceWGL oglplus::native::SurfaceWGL::Current ( void  )
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.

Exceptions
std::runtime_error

The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).