#include <uniform.h>
Public Member Functions | |
| void | addUniform (Uniform &uniform) |
| Uniform * | findUniform (const std::string &name) |
| const Uniform * | findUniform (const std::string &name) const |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| 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 |
Public Attributes inherited from Uniform | |
| std::string | mName |
| Name of uniform in shader. More... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| 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 |