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