diff --git a/include/Mesh3D.h b/include/Mesh3D.h index 2a6946e..c4f4abd 100644 --- a/include/Mesh3D.h +++ b/include/Mesh3D.h @@ -13,6 +13,7 @@ namespace djalim { Mesh3D(const std::string& filepath); std::vector meshVertices; int numMeshVertices = 0; + int numFaces = 0; void loadOBJFile(const std::string& filepath); Texture2D texture; GLuint VBO; diff --git a/include/engine.h b/include/engine.h index 98f351a..0b5918f 100644 --- a/include/engine.h +++ b/include/engine.h @@ -6,6 +6,7 @@ #include "ShaderProgram.h" #include "Texture2D.h" #include +#include #include #include #include @@ -21,7 +22,7 @@ struct Object3D { GLuint VAO; }; -typedef std::map Objects3D; +typedef std::map> Objects3D; static bool gWireframe = false;