1#ifndef ULT_MODEL_DATA_H_INCLUDED
2#define ULT_MODEL_DATA_H_INCLUDED
7#define ULT_RENDER_MODEL_DATA_PARAMS(model) model.GetPrimitiveType(), model.GetDescriptor(), \
8 model.GetVertices(), model.GetIndices(), \
9 model.GetVertexSizeInBytes(), \
10 model.GetTotalIndices(), \
11 model.GetVertexStride()
13#define ULT_MODEL_RESOURCE_MANAGER Ult::ResourceManager<Ult::ModelResource,Ult::Handle<Ult::ModelResourceTag>>
58 bool SetIndices(
int totalIndices,
unsigned int* indices);
96 unsigned int* mIndices;
Definition ModelData.h:26
int GetVertexStride() const
Definition ModelData.h:85
PrimitiveType GetPrimitiveType() const
Definition ModelData.h:93
int GetVertexSizeInBytes() const
Definition ModelData.h:81
~ModelData()
Definition ModelData.cpp:16
VertexDescriptor * GetDescriptor()
Definition ModelData.h:53
void Clear()
Definition ModelData.cpp:21
char * GetVertices()
Definition ModelData.h:89
int GetTotalVertices() const
Definition ModelData.h:76
ModelData()
Definition ModelData.cpp:7
bool SetIndices(int totalIndices, unsigned int *indices)
Definition ModelData.cpp:36
bool AddDescriptorElement(ElementType type)
Definition ModelData.h:49
int GetTotalIndices() const
Definition ModelData.h:62
void ClearDescriptor()
Definition ModelData.h:45
bool SetVertices(PrimitiveType type, int totalVertices, int stride, char *vertices)
Definition ModelData.cpp:53
unsigned int * GetIndices()
Definition ModelData.h:66
ModelData * GetModel()
Definition ModelData.h:117
ModelResource(ModelData *model)
Definition ModelData.h:110
~ModelResource()
Definition ModelData.h:113
Definition ModelData.h:19
Definition VertexDescriptor.h:18
PrimitiveType
Definition PrimitiveType.h:9
ElementType
Definition ElementType.h:9