aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphics/Mesh.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/Mesh.hpp')
-rw-r--r--src/graphics/Mesh.hpp19
1 files changed, 19 insertions, 0 deletions
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 <GL/glew.h>
+#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 */