added GetVABMap and GetIBMap in Primitive
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include<hgl/graph/VK.h>
|
||||
|
||||
VK_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* 原始图元数据访问接口<br>
|
||||
* Primitive的存为是为了屏蔽PrimitiveData的初始化之类的访问接口,以便于更好的管理和使用
|
||||
@@ -37,10 +38,13 @@ public:
|
||||
VAB * GetVAB (const int);
|
||||
VAB * GetVAB (const AnsiString &name){return GetVAB(GetVABIndex(name));}
|
||||
const int32_t GetVertexOffset ()const; ///<取得顶点偏移(注意是顶点不是字节)
|
||||
VABMap * GetVABMap (const int); ///<取得VAB映射器
|
||||
VABMap * GetVABMap (const AnsiString &name){return GetVABMap(GetVABIndex(name));}
|
||||
|
||||
const uint32_t GetIndexCount ()const;
|
||||
IndexBuffer * GetIBO ();
|
||||
const uint32_t GetFirstIndex ()const; ///<取得第一个索引
|
||||
IBMap * GetIBMap (); ///<取得索引缓冲区映射器
|
||||
|
||||
VertexDataManager * GetVDM (); ///<取得顶点数据管理器
|
||||
|
||||
|
Reference in New Issue
Block a user