25 #ifndef WGESHADERCODEINJECTOR_H
26 #define WGESHADERCODEINJECTOR_H
30 #include "WGEShaderPreprocessor.h"
43 typedef boost::shared_ptr< WGEShaderCodeInjector >
SPtr;
48 typedef boost::shared_ptr< WGEShaderCodeInjector >
ConstSPtr;
70 virtual std::string
process(
const std::string& file,
const std::string& code )
const;
77 void setCode( std::string code );
91 #endif // WGESHADERCODEINJECTOR_H
std::string m_code
the custom code.
std::string m_keyword
What to replace.
boost::shared_ptr< WGEShaderCodeInjector > ConstSPtr
Shortcut for a const shared_ptr.
void setCode(std::string code)
Define the code that replaces the keyword.
virtual std::string process(const std::string &file, const std::string &code) const
Process the whole code.
boost::shared_ptr< WGEShaderCodeInjector > SPtr
Shortcut for a shared_ptr.
WGEShaderCodeInjector(std::string keyword)
Default constructor.
Base class for each preprocessing possible to shader code.
This preprocessor is able to inject code into a shader.
virtual ~WGEShaderCodeInjector()
Destructor.