增加材质和纹理
This commit is contained in:
@@ -14,12 +14,15 @@ public:
|
||||
PrimitiveType type;
|
||||
PrimitiveAttributes attributes;
|
||||
DeviceBufferAccessorConstPtr indices;
|
||||
MaterialPtr material;
|
||||
};
|
||||
typedef std::shared_ptr<Primitive> PrimitivePtr;
|
||||
typedef std::shared_ptr<const Primitive> PrimitiveConstPtr;
|
||||
typedef std::vector<PrimitivePtr> PrimitiveArray;
|
||||
|
||||
public:
|
||||
int32_t getID(void) const { return m_id; }
|
||||
|
||||
const std::string& getName(void) const {
|
||||
return m_name;
|
||||
}
|
||||
@@ -31,11 +34,12 @@ public:
|
||||
PrimitiveConstPtr getPrimitive(int32_t index) const;
|
||||
|
||||
private:
|
||||
int32_t m_id;
|
||||
std::string m_name;
|
||||
PrimitiveArray m_primitiveArray;
|
||||
|
||||
public:
|
||||
Mesh(const std::string& name);
|
||||
Mesh(int32_t id, const std::string& name);
|
||||
~Mesh();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user