Carna  Version 3.0.1
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Carna::base::ShaderUniformBase Class Referenceabstract

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

#include <ShaderUniform.h>

+ Inheritance diagram for Carna::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
Date
1.9.14 - 14.3.15

Definition at line 76 of file ShaderUniform.h.


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