From c691b8e48c572e2d5f1c7c16c8f42babd7d706d5 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Fri, 29 Oct 2021 13:23:44 +0100 Subject: Basic text entry working. --- src/gl.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gl.h') 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 -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 */ -- cgit v1.2.3