summaryrefslogtreecommitdiff
path: root/src/gl.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-29 13:23:44 +0100
committerPhil Jones <philj56@gmail.com>2021-10-29 13:23:44 +0100
commitc691b8e48c572e2d5f1c7c16c8f42babd7d706d5 (patch)
treeb3d601919670c41e0409477e22371ab77e092aa2 /src/gl.h
parent3bf156c9d9598acbee38c49d17cdb7d77e79d520 (diff)
Basic text entry working.
Diffstat (limited to 'src/gl.h')
-rw-r--r--src/gl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gl.h b/src/gl.h
index d963f0f..8a4ff73 100644
--- a/src/gl.h
+++ b/src/gl.h
@@ -3,7 +3,9 @@
#include <epoxy/gl.h>
-struct client_state;
+struct color;
+struct image;
+
struct gl {
GLuint vbo;
GLuint vao;
@@ -12,7 +14,8 @@ struct gl {
GLuint shader;
};
-void gl_initialise(struct client_state *state);
-void gl_draw(struct client_state *state);
+void gl_initialise(struct gl *gl, struct image *texture);
+void gl_clear(struct gl *gl, struct color *color);
+void gl_draw_texture(struct gl *gl, struct image *texture, int32_t x, int32_t y, int32_t width, int32_t height);
#endif /* GL_H */