|
Carna
Version 3.0.1
|
Implements ShaderUniformBase class for particular ValueType. More...
#include <ShaderUniform.h>
Inheritance diagram for Carna::base::ShaderUniform< ValueType >:
Collaboration diagram for Carna::base::ShaderUniform< ValueType >:Public Types | |
| typedef ValueType | Value |
| Holds the accepted value type. | |
Public Member Functions | |
| ShaderUniform (const std::string &name, const ValueType &value) | |
Public Member Functions inherited from Carna::base::ShaderUniformBase | |
| 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 |
Public Attributes inherited from Carna::base::ShaderUniformBase | |
| 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.
| Carna::base::ShaderUniform< ValueType >::ShaderUniform | ( | const std::string & | name, |
| const ValueType & | value | ||
| ) |
Instantiates.
Definition at line 194 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