summaryrefslogtreecommitdiff
path: root/meme/overlay.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2015-03-16 15:44:34 (GMT)
committerWerner Almesberger <werner@almesberger.net>2015-03-16 15:44:34 (GMT)
commit7a36d4f5b214d62268a085dad665b09c41f2b3c7 (patch)
tree9a5934c45ccae9d15cc346a10061ad04001953ef /meme/overlay.h
parent542ea751bc0d739ac4ff8490abd66726dd7c08ee (diff)
downloadmisc-7a36d4f5b214d62268a085dad665b09c41f2b3c7.zip
misc-7a36d4f5b214d62268a085dad665b09c41f2b3c7.tar.gz
misc-7a36d4f5b214d62268a085dad665b09c41f2b3c7.tar.bz2
meme/, vispcb/: separate paths from "struct overlay"
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 2439608..bec5a09 100644
--- a/meme/overlay.h
+++ b/meme/overlay.h
@@ -14,13 +14,17 @@
#ifndef OVERLAY_H
#define OVERLAY_H
-struct overlay;
+struct path;
+
+struct overlay {
+ struct path *paths;
+};
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,
+void overlay_load(struct overlay *overlay, const char *name,
void (*xform)(float x, float y, float *res_x, float *res_y));
#endif /* !OVERLAY_H */