summaryrefslogtreecommitdiff
path: root/meme/overlay.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-16 16:02:24 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-16 16:02:24 (GMT)
commit3401e143f56f0871f95759443ddec8e9c59fbdc9 (patch)
tree1a33116985a497bc0ae809c7f42abe9b8469e6ad /meme/overlay.h
parent7a36d4f5b214d62268a085dad665b09c41f2b3c7 (diff)
downloadmisc-3401e143f56f0871f95759443ddec8e9c59fbdc9.zip
misc-3401e143f56f0871f95759443ddec8e9c59fbdc9.tar.gz
misc-3401e143f56f0871f95759443ddec8e9c59fbdc9.tar.bz2
meme/overlay.c, overlay.h (overlay_reload): reload overlay from file
Diffstat (limited to 'meme/overlay.h')
-rw-r--r--meme/overlay.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/meme/overlay.h b/meme/overlay.h
index bec5a09..02465b9 100644
--- a/meme/overlay.h
+++ b/meme/overlay.h
@@ -17,6 +17,8 @@
struct path;
struct overlay {
+ const char *name;
+ void (*xform)(float x, float y, float *res_x, float *res_y);
struct path *paths;
};
@@ -24,6 +26,9 @@ struct overlay {
void overlay_draw(const struct overlay *overlay,
void (*moveto)(void *user, int x, int y),
void (*lineto)(void *user, int x, int y), void *user);
+
+void overlay_reload(struct overlay *overlay);
+
void overlay_load(struct overlay *overlay, const char *name,
void (*xform)(float x, float y, float *res_x, float *res_y));