summaryrefslogtreecommitdiff
path: root/src/gl.h
diff options
context:
space:
mode:
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 */