OpenWalnut  1.5.0dev
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. More...
 

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. More...
 

Detailed Description

Contains some utility functions related to the WGEShaderPropertyDefineOptions class.

Typedef Documentation

◆ NameDescriptionDefineTuple

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 135 of file WGEShaderPropertyDefineOptions.h.

Function Documentation

◆ createSelection()

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 31 of file WGEShaderPropertyDefineOptions.cpp.