18 #include <ShaderPipeline/ShaderPipelineInclude.h>
22 class ShaderPipelineInclude;
28 _containsDefines =
false;
38 void setValue(
const std::string& value) { _value = value; }
42 const std::string&
getValue()
const {
return _value; }
49 bool _containsDefines;
56 class IncludeFunction;
77 const std::vector<const ShaderPipelineInclude*>&
getIncludes() {
return _includes; }
88 IncludeFunction* addFunction(
const std::string& returnType,
89 const std::string& name,
90 const std::string& parameterString,
91 const std::string& body);
93 StructFunction* addStruct(
const std::string& name,
const std::string& members);
96 std::vector<const ShaderPipelineInclude*> _includes;
Container class for includes.
static const std::string NamePrefix
Variables for names of the built-in includes.
~IncludeContainer()
Destructor. Clears the container.
static const std::string FetchOverlayCubic
void clear()
Deletes all contained includes.
IncludeContainer()
Empty constructor.
const std::vector< const ShaderPipelineInclude * > & getIncludes()
Access to the includes stored in this container.
void setup()
Initialize the container.
The helper class for the include which is added to the GVR.
SoView2DShaderCustomInclude()
bool containsDefines() const override
Defines are places on the top of the shader.
void setValue(const std::string &value)
void setContainsDefines(bool containsDefines)
const std::string & getValue() const
void appendDefinition(std::stringstream &str) const override
~SoView2DShaderCustomInclude() override
All includes implemented by the GVR itself shall be included in this namespace.