18 #ifndef GZ_RENDERING_SHADERPARAMS_HH_
19 #define GZ_RENDERING_SHADERPARAMS_HH_
25 #include "gz/rendering/Export.hh"
32 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
35 class ShaderParamsPrivate;
41 class IteratorPrivate;
45 class IGNITION_RENDERING_VISIBLE Iterator
56 public: Iterator(
const Iterator &_iter);
61 Iterator& operator=(
const Iterator &_iter);
69 public:
bool operator==(
const Iterator &_iter);
75 public:
bool operator!=(
const Iterator &_iter);
84 public: Iterator &operator++();
87 public: Iterator operator++(
int);
116 public: Iterator
end()
const;
a variant type that holds params that can be passed to a shader
Definition: gz/rendering/ShaderParam.hh:42
a map that holds params to be passed to a shader
Definition: gz/rendering/ShaderParams.hh:39
Iterator begin() const
Iterator to first parameter.
~ShaderParams()
destructor
void ClearDirty()
Resets the dirty flag.
Iterator end() const
Iterator to one past last param.
ShaderParams()
constructor
const ShaderParam & operator[](const std::string &_name) const
Access a param with a given name.
ShaderParam & operator[](const std::string &_name)
Access a param with a given name.
bool IsDirty() const
Have the params changed?