#ifndef _MESH3D #define _MESH3D #include "Texture2D.h" #include #include #include namespace djalim { class Mesh3D { public: Mesh3D(); Mesh3D(const std::string& filepath, bool flipObjectVertically = false); void loadOBJFile(const std::string& filepath, bool flipObjectVertically = false); public: Texture2D texture; glm::vec3 position = {0.0f, 0.0f, 0.0f}; glm::vec3 rotation = {0.0f, 0.0f, 0.0f}; glm::vec3 scale = {1.0f, 1.0f, 1.0f}; std::vector meshVertices; int numMeshVertices = 0; int numFaces = 0; GLuint VBO; GLuint VAO; }; } #endif // !_MESH3D