added VDM in Primitive/Renderable/PrimitiveDataBuffer
This commit is contained in:
@@ -42,6 +42,8 @@ public:
|
||||
IndexBuffer * GetIBO ();
|
||||
const uint32_t GetFirstIndex ()const; ///<取得第一个索引
|
||||
|
||||
VertexDataManager * GetVDM (); ///<取得顶点数据管理器
|
||||
|
||||
const AABB & GetBoundingBox ()const{return BoundingBox;}
|
||||
};//class Primitive
|
||||
VK_NAMESPACE_END
|
||||
|
@@ -29,9 +29,11 @@ struct PrimitiveDataBuffer
|
||||
|
||||
IndexBuffer * ibo;
|
||||
|
||||
VertexDataManager *vdm; //只是用来区分和比较的,不实际使用
|
||||
|
||||
public:
|
||||
|
||||
PrimitiveDataBuffer(const uint32_t,IndexBuffer *);
|
||||
PrimitiveDataBuffer(const uint32_t,IndexBuffer *,VertexDataManager *_v=nullptr);
|
||||
~PrimitiveDataBuffer();
|
||||
|
||||
const bool Comp(const PrimitiveDataBuffer *pdb)const;
|
||||
|
Reference in New Issue
Block a user