diff options
Diffstat (limited to 'src/include/gl_calls.h')
-rw-r--r-- | src/include/gl_calls.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gl_calls.h b/src/include/gl_calls.h new file mode 100644 index 0000000..fa0a00c --- /dev/null +++ b/src/include/gl_calls.h @@ -0,0 +1,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, +}; + |