#include <uniform.h>
Public Member Functions | |
void | insertStruct (int index, UniformStruct &uniformStruct) |
![]() | |
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< UniformStruct > > | mStructs |
![]() | |
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) |
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 |