Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::ShaderInputRegistry::GenerateFunction< T > Struct Template Reference

A GenerateFunction is similar to a CombineFunction, above, but generates additional inputs based on the value of a single input. More...

#include "shaderinputregistry.h"

Public Types

typedef std::function
< std::vector< T >const T
&current_value)> 
Type
 

Detailed Description

template<typename T>
struct ion::gfx::ShaderInputRegistry::GenerateFunction< T >

A GenerateFunction is similar to a CombineFunction, above, but generates additional inputs based on the value of a single input.

Note that a GenerateFunction is applied after a CombineFunction. A GenerateFunction can be used, for example, to generate a rotation matrix (3x3) out of a general transformation matrix (4x4), or to extract angles out of a matrix (e.g., as a Vector3). Note that Specs for all generated inputs must already be Add()ed to the same registry as the passed input.

Using a struct since we can't use alias templates (C++11).

Definition at line 125 of file shaderinputregistry.h.

Member Typedef Documentation

template<typename T>
typedef std::function<std::vector<T>const T& current_value)> ion::gfx::ShaderInputRegistry::GenerateFunction< T >::Type

Definition at line 126 of file shaderinputregistry.h.


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