From 47d648b85edb14a18d4645861fb2f08a5b52a33b Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sun, 28 Mar 2021 22:26:39 +0000 Subject: add mesh routines --- src/graphics/Mesh.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/graphics/Mesh.hpp (limited to 'src/graphics/Mesh.hpp') diff --git a/src/graphics/Mesh.hpp b/src/graphics/Mesh.hpp new file mode 100644 index 0000000..577a32a --- /dev/null +++ b/src/graphics/Mesh.hpp @@ -0,0 +1,19 @@ +#ifndef ENGINE_MESH_H +#define ENGINE_MESH_H + +#include +#include "../graphics/Vertex.hpp" + +class Mesh { + GLuint VAO, VBO, EBO; + size_t number_indices; + +public: + Mesh(Vertex *vertices, size_t num_vert, + GLuint *indices, size_t num_indices); + ~Mesh(); + + void Draw(); +}; + +#endif /* ENGINE_VERTEX_H */ -- cgit v1.2.3-18-g5258