X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=model.hpp;h=358b92d07701211a99eff67692e1ec56045f6468;hp=de8e27f8639f8c422de78127faa300ec15b4fd45;hb=511a2c92fcb9dda82dd5d38b91ea03790d0cb7b2;hpb=c44e69ec78367fb2957324026894aef970f2481a diff --git a/model.hpp b/model.hpp index de8e27f..358b92d 100644 --- a/model.hpp +++ b/model.hpp @@ -9,6 +9,7 @@ #include #include "material.hpp" #include "program.hpp" +#include "skybox.hpp" class Model { @@ -20,12 +21,12 @@ class Model { public: Model(const std::string &path, Program p); - void draw() const; + void draw(Skybox skybox) const; class Node { public: Node(const aiNode &aiNode, GLuint progId); - void draw(const std::vector &meshes, const std::vector &materials, glm::mat4 parentModel) const; + void draw(const std::vector &meshes, const std::vector &materials, const Skybox s, glm::mat4 parentModel) const; const std::vector &getChildren() const { return children; } Node* findNode(const aiNode &aiNode); glm::mat4 model = glm::mat4(1);