![]() |
LibCarna Version 3.4.0
|
Implements ShaderUniformBase class for particular ValueType. More...
#include <ShaderUniform.hpp>
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 167 of file ShaderUniform.hpp.
Holds the accepted value type.
Definition at line 177 of file ShaderUniform.hpp.
LibCarna::base::ShaderUniform< ValueType >::ShaderUniform | ( | const std::string & | name, |
const ValueType & | value | ||
) |
Instantiates.
Definition at line 195 of file ShaderUniform.hpp.
|
overrideprotectedvirtual |
Uploads this uniform to location.
Implements LibCarna::base::ShaderUniformBase.
Definition at line 203 of file ShaderUniform.hpp.
ValueType LibCarna::base::ShaderUniform< ValueType >::value |
Holds the value of this uniform.
Definition at line 185 of file ShaderUniform.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen