#include <vertexattribute.h>
Public Member Functions | |
| BaseVertexAttribute (const nap::rtti::TypeInfo &elementType) | |
| virtual void * | getRawData ()=0 |
| virtual VkFormat | getFormat () const =0 |
| virtual int | getCount () const =0 |
| virtual size_t | getCapacity () const =0 |
| virtual void | reserve (size_t numElements)=0 |
| const nap::rtti::TypeInfo & | getElementType () 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::string | mAttributeID |
| Name/ID of the attribute. More... | |
| rtti::TypeInfo | mElementType |
| Element type. 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) |
Base class for vertex attribute. Describes what kind of data will be present in the attribute. This base class is necessary to have a type independent way to update the GPU meshes.
| BaseVertexAttribute | ( | const nap::rtti::TypeInfo & | elementType | ) |
Constructor
| elementType | the vertex buffer element type |
|
pure virtual |
Implemented in VertexAttribute< ELEMENTTYPE >.
|
pure virtual |
Implemented in VertexAttribute< ELEMENTTYPE >.
| const nap::rtti::TypeInfo& getElementType | ( | ) | const |
|
pure virtual |
Implemented in VertexAttribute< ELEMENTTYPE >.
|
pure virtual |
Implemented in VertexAttribute< ELEMENTTYPE >, and VertexAttribute< glm::vec3 >.
|
pure virtual |
Reserves CPU memory for the buffer.
Implemented in VertexAttribute< ELEMENTTYPE >, and VertexAttribute< glm::vec3 >.
| std::string mAttributeID |
Name/ID of the attribute.
| rtti::TypeInfo mElementType |
Element type.