OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::OneOf< Common, Variants > Class Template Reference

Stores a value having one of the listed types in a common representation. More...

#include </home/chochlik/devel/oglplus/include/oglplus/one_of.hpp>

Public Member Functions

 operator Common (void) const
 OneOf is convertible to the Common representation of the Variants.
 

Detailed Description

template<typename Common, typename Variants>
class oglplus::OneOf< Common, Variants >

Stores a value having one of the listed types in a common representation.

Applications rarely need to use this class directly. Instantiations of this template are used as types for parameters in functions taking values with variant types. When constructing a one-of value the application simply passes a value whose type must be one of the types listed in the Variants template parameter pack, otherwise the construction will fail.

Context gl;
...
gl.DrawBuffer(ColorBuffer::FrontLeft);
...

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/one_of.hpp

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