Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Mesh
- {
- public:
- Mesh(Texture2DCache *textureCache);
- ~Mesh();
- bool load(const char *file);
- void free();
- MeshNode *rootNode() { return _rootNode; }
- RenderMeshData* getRenderMeshData(unsigned int index) { return _renderMeshDatas[index]; }
- unsigned int getNumAnimations() const { return _animationDatas.size(); }
- const AnimationData* getAnimationData(unsigned int index) const;
- const AnimationData* getAnimationData(const char *name) const;
- private:
- std::vector<RenderMeshData*> _renderMeshDatas;
- std::vector<AnimationData*> _animationDatas;
- std::unordered_map<unsigned int, MeshMaterial*> _materials; //index, material
- MeshNode *_rootNode;
- Texture2DCache *_textureCache;
- std::string _directory;
- void _getDirectory(const std::string &file, std::string &directory);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement