added GetVABMap and GetIBMap in Primitive
This commit is contained in:
@@ -66,6 +66,11 @@ const int32_t Primitive::GetVertexOffset()const
|
||||
return prim_data->GetVertexOffset();
|
||||
}
|
||||
|
||||
VABMap *Primitive::GetVABMap(const int vab_index)
|
||||
{
|
||||
return prim_data->GetVABMap(vab_index);
|
||||
}
|
||||
|
||||
const uint32_t Primitive::GetIndexCount()const
|
||||
{
|
||||
return prim_data->GetIndexCount();
|
||||
@@ -81,6 +86,11 @@ const uint32_t Primitive::GetFirstIndex()const
|
||||
return prim_data->GetFirstIndex();
|
||||
}
|
||||
|
||||
IBMap *Primitive::GetIBMap()
|
||||
{
|
||||
return prim_data->GetIBMap();
|
||||
}
|
||||
|
||||
VertexDataManager *Primitive::GetVDM()
|
||||
{
|
||||
return prim_data->GetVDM();
|
||||
|
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
IndexBuffer * InitIBO(const uint32_t index_count,IndexType it);
|
||||
IndexBuffer * GetIBO (){return ibo;}
|
||||
IBMap * MapIBO (){return &ibo_map;}
|
||||
IBMap * GetIBMap (){return &ibo_map;}
|
||||
uint32_t GetIndexCount ()const{return index_count;}
|
||||
|
||||
virtual int32_t GetVertexOffset ()const=0; ///<取得顶点偏移(注意是顶点不是字节)
|
||||
|
Reference in New Issue
Block a user