![]() |
Carna Version 3.3.3
|
Implements ShaderUniformBase class for particular ValueType. More...
#include <ShaderUniform.h>
Public Types | |
typedef ValueType | Value |
Holds the accepted value type. | |
Public Member Functions | |
ShaderUniform (const std::string &name, const ValueType &value) | |
![]() | |
ShaderUniformBase (const std::string &name) | |
Instantiates. | |
virtual | ~ShaderUniformBase () |
Does nothing. | |
bool | upload () const |
Uploads this uniform to the current shader. Returns true if the current shader has a matching uniform defined or false otherwise. | |
Public Attributes | |
ValueType | value |
![]() | |
std::string | name |
Holds the name of this uniform. | |
Protected Member Functions | |
virtual void | uploadTo (int location) const override |
Uploads this uniform to location. | |
Implements ShaderUniformBase class for particular ValueType.
ValueType | specifies the accepted value type. |
The particular glUniform
function used for upload is chosen by the mapping ShaderUniformType and its specializations induce.
Definition at line 166 of file ShaderUniform.h.
Holds the accepted value type.
Definition at line 176 of file ShaderUniform.h.
Carna::base::ShaderUniform< ValueType >::ShaderUniform | ( | const std::string & | name, |
const ValueType & | value | ||
) |
Instantiates.
Definition at line 194 of file ShaderUniform.h.
|
overrideprotectedvirtual |
Uploads this uniform to location.
Implements Carna::base::ShaderUniformBase.
Definition at line 202 of file ShaderUniform.h.
ValueType Carna::base::ShaderUniform< ValueType >::value |
Holds the value of this uniform.
Definition at line 184 of file ShaderUniform.h.
Documentation generated by Doxygen