OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::smart_enums::_2D Struct Reference

Smart enum for enumerations with the _2D value. More...

#include </home/chochlik/devel/oglplus/include/oglplus/opt/smart_enums.hpp>

Public Member Functions

template<typename Enum , Enum = Enum::_2D>
 operator Enum (void) const
 Conversion to any Enum type having the _2D value. More...
 

Friends

template<typename Enum >
bool operator== (Enum value, _2D)
 Equality comparison with any Enum type having the _2D value. More...
 
template<typename Enum >
bool operator!= (Enum value, _2D)
 Non-equality comparison with any Enum type having the _2D value. More...
 

Detailed Description

Smart enum for enumerations with the _2D value.

See Also
TextureTarget
Related OpenGL symbols:
GL_TEXTURE_2D
Examples:
oglplus/016_textured_cube_glsl120.cpp, and oglplus/040_jelly_cube.cpp.

Member Function Documentation

template<typename Enum , Enum = Enum::_2D>
oglplus::smart_enums::_2D::operator Enum ( void  ) const

Conversion to any Enum type having the _2D value.

Instances of the _2D type are convertible to instances of any enumeration type having the _2D value.

Friends And Related Function Documentation

template<typename Enum >
bool operator!= ( Enum  value,
_2D   
)
friend

Non-equality comparison with any Enum type having the _2D value.

Instances of the smart_enums::_2D type can be compared for non-equality to instances of any enumeration type having the _2D value.

template<typename Enum >
bool operator== ( Enum  value,
_2D   
)
friend

Equality comparison with any Enum type having the _2D value.

Instances of the smart_enums::_2D type can be compared for equality to instances of any enumeration type having the _2D value.


The documentation for this struct 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).