#include <uniform.h>
Public Member Functions | |
void | addUniform (Uniform &uniform) |
Uniform * | findUniform (const std::string &name) |
const Uniform * | findUniform (const std::string &name) const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::vector< rtti::ObjectPtr< Uniform > > | mUniforms |
![]() | |
std::string | mName |
Name of uniform in shader. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Contains other uniforms, including: values, structs and arrays. myshader.frag example:
void addUniform | ( | Uniform & | uniform | ) |
Adds a uniform.
uniform | the uniform to add |
Uniform* findUniform | ( | const std::string & | name | ) |
name | the name of the uniform to find. |
const Uniform* findUniform | ( | const std::string & | name | ) | const |
name | the name of the uniform to find. |
std::vector<rtti::ObjectPtr<Uniform> > mUniforms |