![]() |
LibCarna Version 3.4.0
|
Type-independent abstract ShaderUniform base class. More...
#include <ShaderUniform.hpp>
Public Member Functions | |
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 | |
std::string | name |
Holds the name of this uniform. | |
Protected Member Functions | |
virtual void | uploadTo (int location) const =0 |
Uploads this uniform to location. | |
Type-independent abstract ShaderUniform base class.
Definition at line 78 of file ShaderUniform.hpp.
|
protectedpure virtual |
Uploads this uniform to location.
Implemented in LibCarna::base::ShaderUniform< ValueType >.
std::string LibCarna::base::ShaderUniformBase::name |
Holds the name of this uniform.
Definition at line 96 of file ShaderUniform.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen