diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-09-09 14:45:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-10-06 11:21:23 +0200 |
commit | f7fa6c70c6e394b6fc46c15e0c5bfb999da5ba6d (patch) | |
tree | 3dae0c16cc5da8a716eacbd21be1989d8d8d425a /platform/gl/gl-app.h | |
parent | 36ad0a6f567192d676d128628eb461204984e070 (diff) | |
download | mupdf-f7fa6c70c6e394b6fc46c15e0c5bfb999da5ba6d.tar.xz |
gl: Bundle page texture info into a struct.
Diffstat (limited to 'platform/gl/gl-app.h')
-rw-r--r-- | platform/gl/gl-app.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/gl/gl-app.h b/platform/gl/gl-app.h index 3889d92c..fc9bbfbd 100644 --- a/platform/gl/gl-app.h +++ b/platform/gl/gl-app.h @@ -74,6 +74,15 @@ void ui_end_text(fz_context *ctx); float ui_draw_string(fz_context *ctx, float x, float y, const char *str); float ui_measure_string(fz_context *ctx, char *str); +struct texture +{ + GLuint id; + int x, y, w, h; + float s, t; +}; + +void ui_draw_image(struct texture *tex, float x, float y); + struct input { char text[256]; |