OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::native::SurfaceGLX Class Reference

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

Detailed Description

Wrapper for GLX (drawable) surface handle.

Member Function Documentation

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

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