1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
struct default_gl_vertex_object {
uint32 VertexArrayObject;
uint32 VertexBufferObject;
uint32 ElementBufferObject;
};
struct gl_vertex_shader {
uint32 VertexArrayObject;
uint32 VertexBufferObject;
};
static default_gl_vertex_object DefaultVerts;
static gl_vertex_shader GL_DefaultVertexObjects;
static uint32 DefaultVertexShader;
static uint32 DefaultShaderProgram;
static uint32 MaskShaderProgram;
float GL_DefaultVertices[] = {
1.0f, 1.0f, 0.0f, 1.0f, 1.0f,
1.0f, -1.0f, 0.0f, 1.0f, 0.0f,
-1.0f, -1.0f, 0.0f, 0.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 0.0f, 1.0f,
};
|