OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::native::ContextGLX Class Reference

Wrapper for a valid GLX context handle. More...

#include </home/chochlik/devel/oglplus/include/oglplus/native/context_glx.hpp>

Public Member Functions

void MakeCurrent (const SurfaceGLX &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 ContextGLX Current (void)
 Returns a wrapper for the currently bound GLX context. More...
 

Detailed Description

Wrapper for a valid GLX context handle.

Member Function Documentation

static ContextGLX oglplus::native::ContextGLX::Current ( void  )
static

Returns a wrapper for the currently bound GLX context.

This function gets and wraps the current GLX context (+display). 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).