/*! * \file include/Mesh.h * \brief OpenGL Mesh * * \author Mongoose * * \todo Unify the parallel systems here, arrays and the allocate/set */ #ifndef _MESH_H_ #define _MESH_H_ #include #include #include #include #include "loader/LoaderTR2.h" class Mesh { public: Mesh(const std::vector& vertices, const std::vector& rectangles, const std::vector& triangles); void prepare(); void display(glm::mat4 model, glm::mat4 view, glm::mat4 projection); private: std::vector indices; std::vector vertices; std::vector uvs; std::vector textures; }; #endif