]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/vertex.h
361d5f64e48ec18b4432a35c0907cf319684da06
[dragonblocks_alpha.git] / src / client / vertex.h
1 #ifndef _VERTEX_H_
2 #define _VERTEX_H_
3
4 #include <GL/glew.h>
5 #include <GL/gl.h>
6
7 typedef struct
8 {
9         GLenum type;
10         GLsizei length;
11         GLsizei size;
12 } VertexAttribute;
13
14 typedef struct
15 {
16         VertexAttribute *attributes;
17         GLuint count;
18         GLsizei size;
19 } VertexLayout;
20
21 void vertex_layout_configure(VertexLayout *layout);
22
23 #endif