diff options
author | Joursoir <chat@joursoir.net> | 2021-03-28 22:26:39 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-03-28 22:26:39 +0000 |
commit | 47d648b85edb14a18d4645861fb2f08a5b52a33b (patch) | |
tree | 109c002a63a75922f3e4c1286c2ad6003b2b36b2 /src/graphics/Mesh.hpp | |
parent | 7f7123ef4ca5e37da45907eeb7f29ed15e535dce (diff) | |
download | space-simulator-47d648b85edb14a18d4645861fb2f08a5b52a33b.tar.gz space-simulator-47d648b85edb14a18d4645861fb2f08a5b52a33b.tar.bz2 space-simulator-47d648b85edb14a18d4645861fb2f08a5b52a33b.zip |
add mesh routines
Diffstat (limited to 'src/graphics/Mesh.hpp')
-rw-r--r-- | src/graphics/Mesh.hpp | 19 |
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 */ |