#pragma once #include #include #include #include "shader.hpp" #include #include struct Vertex { glm::vec3 Position; glm::vec3 Normal; glm::vec2 TexCoords; }; struct Texture { unsigned int id; std::string type; std::string path; }; struct Mesh { std::vector vertices; std::vector indices; std::vector textures; unsigned int VAO; unsigned int VBO; unsigned int EBO; Mesh(std::vector vertices, std::vector indices, std::vector textures) : vertices(vertices), indices(indices), textures(textures) { setupMesh(); } void Draw(Shader &shader); void setupMesh(); };