OpenWalnut  1.4.0
Public Types
wge::UniformType< T > Class Template Reference

Class helping to adapt types specified as template parameter into the best matching osg::Uniform (GLSL) type. More...

#include <WGEUniformTypeTraits.h>

List of all members.

Public Types

typedef T Type
 The best matching GLSL uniform type for the specified template parameter.

Detailed Description

template<typename T>
class wge::UniformType< T >

Class helping to adapt types specified as template parameter into the best matching osg::Uniform (GLSL) type.

This is useful especially for property-types to uniform type conversion.

Notes:
: bool map to bool, int to int, unsigned int to unsigned int. Unallowed types like std::string will then cause compilation errors as osg::Uniform does not offer proper constructors/setters for these types.

Definition at line 45 of file WGEUniformTypeTraits.h.


Member Typedef Documentation

template<typename T>
typedef T wge::UniformType< T >::Type

The best matching GLSL uniform type for the specified template parameter.

Definition at line 51 of file WGEUniformTypeTraits.h.


The documentation for this class was generated from the following file: