summaryrefslogtreecommitdiff
path: root/meme/overlay.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-15 21:51:46 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-15 21:51:46 (GMT)
commit1f33a9716932836c257295dd02f1f24abcb0eb4f (patch)
treeb1f52c8005ec5b73c36c72678be580511fe2bd1f /meme/overlay.h
parent57ff0b618c936a0f48d445f78beaeb6b7b000f59 (diff)
downloadmisc-1f33a9716932836c257295dd02f1f24abcb0eb4f.zip
misc-1f33a9716932836c257295dd02f1f24abcb0eb4f.tar.gz
misc-1f33a9716932836c257295dd02f1f24abcb0eb4f.tar.bz2
meme/: generalize overlay handling (let caller provide coordinate transform)
This will let us share the code with vispcb.
Diffstat (limited to 'meme/overlay.h')
-rw-r--r--meme/overlay.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/meme/overlay.h b/meme/overlay.h
index dbab8b3..2439608 100644
--- a/meme/overlay.h
+++ b/meme/overlay.h
@@ -20,6 +20,7 @@ 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);
-struct overlay *overlay_load(const char *name);
+struct overlay *overlay_load(const char *name,
+ void (*xform)(float x, float y, float *res_x, float *res_y));
-#endif /* !STL_H */
+#endif /* !OVERLAY_H */