diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-21 22:05:10 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-21 22:05:10 -0400 |
commit | d03d7187c1881237b1a98404a125507d33d85a0e (patch) | |
tree | e0409ebb4bec224b1231317e3e7743fb9349b989 /gl_calls.h | |
parent | ed51dab429e467fc144f0bfbed70a5291c8a0a27 (diff) |
a bit of housekeeping
Diffstat (limited to 'gl_calls.h')
-rw-r--r-- | gl_calls.h | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -1,2 +1,24 @@ -extern void InitGLShaders(); +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, +}; |