]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/mesh.h
eae283f98dca30a4fb40bc00f2ac6f0c320c6144
[dragonblocks_alpha.git] / src / client / mesh.h
1 #ifndef _MESH_H_
2 #define _MESH_H_
3
4 #include <GL/glew.h>
5 #include <GL/gl.h>
6 #include <stdbool.h>
7 #include "client/vertex.h"
8
9 typedef struct
10 {
11         GLuint VAO, VBO;
12         GLuint *textures;
13         GLuint textures_count;
14         bool free_textures;
15         GLvoid *vertices;
16         GLuint vertices_count;
17         bool free_vertices;
18         VertexLayout *layout;
19 } Mesh;
20
21 Mesh *mesh_create();
22 void mesh_delete(Mesh *mesh);
23 void mesh_configure(Mesh *mesh);
24 void mesh_render(Mesh *mesh);
25
26 #endif