aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphics/Mesh.hpp
blob: e5093107e0c99e485bc03a6e5389f5d7e2a2c357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef ENGINE_MESH_H
#define ENGINE_MESH_H

#include <GL/glew.h>
#include "../graphics/Vertex.hpp"

class Mesh {
	GLuint VAO, VBO, EBO;
	GLenum mode;
	size_t number_indices;

public:
	Mesh(GLenum primitive, Vertex *vertices, size_t num_vert,
		GLuint *indices, size_t num_indices);
	~Mesh();

	void Draw();
};

#endif /* ENGINE_VERTEX_H */