OpenWalnut  1.5.0dev
Public Types | List of all members
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>

Public Types

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

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.

Note
: 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

◆ Type

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: