#include <uniform.h>
Public Member Functions | |
| void | insertStruct (int index, UniformStruct &uniformStruct) |
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< UniformStruct > > | mStructs |
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) |
A list of uniform structs. The list must be declared inside a uniform buffer object (block). myshader.frag example:
| void insertStruct | ( | int | index, |
| UniformStruct & | uniformStruct | ||
| ) |
Inserts a structure at the given index.
| index | index to insert struct. |
| uniformStruct | the struct to insert |
| std::vector<rtti::ObjectPtr<UniformStruct> > mStructs |