diff options
author | Phil Jones <philj56@gmail.com> | 2021-10-29 13:23:44 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-10-29 13:23:44 +0100 |
commit | c691b8e48c572e2d5f1c7c16c8f42babd7d706d5 (patch) | |
tree | b3d601919670c41e0409477e22371ab77e092aa2 /src/gl.h | |
parent | 3bf156c9d9598acbee38c49d17cdb7d77e79d520 (diff) |
Basic text entry working.
Diffstat (limited to 'src/gl.h')
-rw-r--r-- | src/gl.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 */ |