25 #ifndef WGESHADERPROPERTYDEFINE_H
26 #define WGESHADERPROPERTYDEFINE_H
32 #include <boost/shared_ptr.hpp>
35 #include <boost/signals2.hpp>
38 #include "../../common/WPropertyTypes.h"
39 #include "../../common/WPropertyVariable.h"
41 #include "WGEShaderDefine.h"
50 template<
typename PropertyType = WPropBool >
57 typedef boost::shared_ptr< WGEShaderPropertyDefine< PropertyType > >
SPtr;
62 typedef boost::shared_ptr< const WGEShaderPropertyDefine< PropertyType > >
ConstSPtr;
95 template<
typename PropertyType >
104 template<
typename PropertyType >
108 m_connection.disconnect();
111 template<
typename PropertyType >
117 #endif // WGESHADERPROPERTYDEFINE_H
This class is able to provide arbitrary values as define statements in GLSL code. ...
boost::shared_ptr< WGEShaderPropertyDefine< PropertyType > > SPtr
Shared pointer for this class.
void setValue(const ValueType &value)
Sets the new value for this define.
void setNewValue()
Sets the value depending on the current value of the property.
virtual ~WGEShaderPropertyDefine()
Destructor.
boost::signals2::connection m_connection
The connection between the prop and the define.
PropertyType m_property
The associated property.
boost::shared_ptr< const WGEShaderPropertyDefine< PropertyType > > ConstSPtr
A const shared pointer for this class.
This class is able to provide arbitrary values as define statements in GLSL code. ...
WGEShaderPropertyDefine(std::string name, PropertyType prop)
Constructs a define with a given name and initial value.