|
OpenWalnut 1.2.5
|
This preprocessor removes the version-statement from the code and puts it to the beginning of the code. More...
#include <WGEShaderVersionPreprocessor.h>
Inheritance diagram for WGEShaderVersionPreprocessor:Public Member Functions | |
| WGEShaderVersionPreprocessor () | |
| Default constructor. | |
| virtual | ~WGEShaderVersionPreprocessor () |
| Destructor. | |
| virtual std::string | process (const std::string &file, const std::string &code) const |
| Process the whole code. | |
This preprocessor removes the version-statement from the code and puts it to the beginning of the code.
This is requires for some GLSL compiler.
Definition at line 38 of file WGEShaderVersionPreprocessor.h.
| WGEShaderVersionPreprocessor::WGEShaderVersionPreprocessor | ( | ) |
Default constructor.
Definition at line 35 of file WGEShaderVersionPreprocessor.cpp.
| WGEShaderVersionPreprocessor::~WGEShaderVersionPreprocessor | ( | ) | [virtual] |
Destructor.
Definition at line 40 of file WGEShaderVersionPreprocessor.cpp.
| std::string WGEShaderVersionPreprocessor::process | ( | const std::string & | file, |
| const std::string & | code | ||
| ) | const [virtual] |
Process the whole code.
It is not allowed to modify some internal state in this function because it might be called by several shaders.
| code | the code to process |
| file | the filename of the shader currently processed. Should be used for debugging output. |
Implements WGEShaderPreprocessor.
Definition at line 45 of file WGEShaderVersionPreprocessor.cpp.
References WGEShaderPreprocessor::getActive(), and wlog::warn().
1.7.3