OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::native::ContextWGL Class Reference

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

Detailed Description

Wrapper for a valid WGL context handle.

Member Function Documentation

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

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