LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
LibCarna::base::ShaderUniformBase Class Referenceabstract

Type-independent abstract ShaderUniform base class. More...

#include <ShaderUniform.hpp>

+ Inheritance diagram for LibCarna::base::ShaderUniformBase:

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.
 

Detailed Description

Type-independent abstract ShaderUniform base class.

Author
Leonid Kostrykin

Definition at line 78 of file ShaderUniform.hpp.

Member Function Documentation

◆ uploadTo()

virtual void LibCarna::base::ShaderUniformBase::uploadTo ( int  location) const
protectedpure virtual

Uploads this uniform to location.

Implemented in LibCarna::base::ShaderUniform< ValueType >.

Member Data Documentation

◆ name

std::string LibCarna::base::ShaderUniformBase::name

Holds the name of this uniform.

Definition at line 96 of file ShaderUniform.hpp.


The documentation for this class was generated from the following file: