5 #include <OpenGL/glew.h>
8 #include <assimp/scene.h>
9 #include <assimp/Importer.hpp>
14 Mesh(const aiMesh *aiMesh, GLuint progId);
20 Model(const std::string &path, GLuint progId);
25 Node(const aiNode &aiNode, GLuint progId);
26 void draw(const std::vector<Mesh> &meshes, glm::mat4 parentModel) const;
27 const std::vector<Node*> &getChildren() const { return children; }
28 Node* findNode(const aiNode &aiNode);
29 glm::mat4 model = glm::mat4(1);
34 std::vector<Node*> children;
35 std::vector<unsigned int> meshIndices;
38 Node* getRoot() { return root; }
39 Node* find(const std::string &name);
44 std::vector<Mesh> meshes;
46 void loadModel(const std::string &path);
48 Assimp::Importer importer;