OpenWalnut  1.4.0
Typedefs | Functions
WGEShaderPropertyDefineOptionsTools Namespace Reference

Contains some utility functions related to the WGEShaderPropertyDefineOptions class. More...

Typedefs

typedef boost::tuple
< std::string, std::string,
std::string > 
NameDescriptionDefineTuple
 This tuple contains name, description and define-name of an option.

Functions

WGEShaderPropertyDefineOptions
< WPropSelection >::SPtr 
createSelection (std::string propName, std::string propDescription, WProperties::SPtr propGroup, std::vector< NameDescriptionDefineTuple > defines)
 A little bit more comfortable way to create a list of shader-defines and the corresponding property.

Detailed Description

Contains some utility functions related to the WGEShaderPropertyDefineOptions class.


Typedef Documentation

typedef boost::tuple< std::string, std::string, std::string > WGEShaderPropertyDefineOptionsTools::NameDescriptionDefineTuple

This tuple contains name, description and define-name of an option.

Definition at line 136 of file WGEShaderPropertyDefineOptions.h.


Function Documentation

WGEShaderPropertyDefineOptions< WPropSelection >::SPtr WGEShaderPropertyDefineOptionsTools::createSelection ( std::string  propName,
std::string  propDescription,
WProperties::SPtr  propGroup,
std::vector< NameDescriptionDefineTuple >  defines 
)

A little bit more comfortable way to create a list of shader-defines and the corresponding property.

Parameters:
propNamethe name of the property to create
propDescriptionthe description of the property to create
propGroupthe owning group of the property
definesthe list of names, descriptions and defines
Returns:
a WGEShaderPropertyDefineOptions instance associated with a new property. This can be acquired using getProperty().

Definition at line 30 of file WGEShaderPropertyDefineOptions.cpp.