25 #ifndef WGESHADERPREPROCESSOR_H
26 #define WGESHADERPREPROCESSOR_H
31 #include <boost/shared_ptr.hpp>
34 #include "../../common/WCondition.h"
49 typedef boost::shared_ptr< WGEShaderPreprocessor >
SPtr;
54 typedef boost::shared_ptr< const WGEShaderPreprocessor >
ConstSPtr;
81 virtual std::string
process(
const std::string& file,
const std::string& code )
const = 0;
115 #endif // WGESHADERPREPROCESSOR_H
void setActive(bool active=true)
(De-)activates the preprocessor.
virtual std::string process(const std::string &file, const std::string &code) const =0
Process the whole code.
bool getActive() const
If the preprocessor is active, this returns true.
virtual ~WGEShaderPreprocessor()
Destructor.
WGEShaderPreprocessor()
Default constructor.
virtual void updated()
Fires m_updateCondition which should denote an update in the preprocessor filter. ...
WCondition::SPtr m_updateCondition
The condition fires on every call of updated().
bool m_active
If true the preprocessor is active.
Base class for each preprocessing possible to shader code.
boost::shared_ptr< WGEShaderPreprocessor > SPtr
Shared pointer for this class.
boost::shared_ptr< const WGEShaderPreprocessor > ConstSPtr
A const shared pointer for this class.
boost::shared_ptr< WCondition > SPtr
Shared pointer type for WCondition.
virtual WCondition::SPtr getChangeCondition() const
Returns the condition denoting a change in this preprocessor filter.