Go to the documentation of this file.
18 #ifndef IGNITION_RENDERING_SHADERPARAM_HH_
19 #define IGNITION_RENDERING_SHADERPARAM_HH_
26 #include "ignition/rendering/config.hh"
27 #include "ignition/rendering/Export.hh"
33 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
36 class ShaderParamPrivate;
65 public: ParamType Type()
const;
74 public:
void operator=(
const float _value);
78 public:
void operator=(
const int _value);
83 public:
bool Value(
float *_value)
const;
88 public:
bool Value(
int *_value)
const;
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
bool Value(float *_value) const
Get the value of this parameter if it is a float.
ParamType Type() const
Get the type of this parameter.
ParamType
Definition: ShaderParam.hh:41
@ PARAM_NONE
Type none.
Definition: ShaderParam.hh:44
a variant type that holds params that can be passed to a shader
Definition: ShaderParam.hh:39
ShaderParam & operator=(const ShaderParam &_other)
Set from another ShaderParam.
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
@ PARAM_INT
Integer type param.
Definition: ShaderParam.hh:50
@ PARAM_FLOAT
Float type param.
Definition: ShaderParam.hh:47