29 #include "WGEShaderPropertyDefineOptions.h"
32 std::string propName, std::string propDescription,
34 std::vector< WGEShaderPropertyDefineOptionsTools::NameDescriptionDefineTuple > defines )
37 std::shared_ptr< WItemSelection > selection(
new WItemSelection() );
38 std::vector< std::string > definesOnly;
41 for( std::vector< WGEShaderPropertyDefineOptionsTools::NameDescriptionDefineTuple >::const_iterator i = defines.begin(); i != defines.end();
44 selection->addItem( ( *i ).get< 0 >(), ( *i ).get< 1 >() );
45 definesOnly.push_back( ( *i ).get< 2 >() );
48 WPropSelection prop = propGroup->addProperty( propName, propDescription, selection->getSelectorFirst() );
This is a WGEShaderDefineOptions class which additionally uses a property to automatically control th...
std::shared_ptr< WGEShaderPropertyDefineOptions > SPtr
Convenience typedef for a boost_shared_ptr< WGEShaderPropertyDefineOptions >.
A class containing a list of named items.
std::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type