summaryrefslogtreecommitdiff
path: root/meme/overlay.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-14 14:51:27 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-14 14:55:31 (GMT)
commit4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf (patch)
tree35edbafc4de622640e08c5935892f9642af0cfc6 /meme/overlay.h
parent06474f30bc0090c93a592a1cd35f5b1c4271d68e (diff)
downloadmisc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.zip
misc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.tar.gz
misc-4405e30b6c126bd25c7a52f15919c5fe2e4ff7cf.tar.bz2
meme/: generalize overlay handling (no globals, support multiple overlays)
Diffstat (limited to 'meme/overlay.h')
-rw-r--r--meme/overlay.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/meme/overlay.h b/meme/overlay.h
index 703d54e..dbab8b3 100644
--- a/meme/overlay.h
+++ b/meme/overlay.h
@@ -14,8 +14,12 @@
#ifndef OVERLAY_H
#define OVERLAY_H
-void overlay_draw(void (*moveto)(void *user, int x, int y),
+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_load(const char *name);
+struct overlay *overlay_load(const char *name);
#endif /* !STL_H */