summaryrefslogtreecommitdiff
path: root/meme/meme.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-02-14 03:54:57 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-02-14 03:55:32 (GMT)
commitd5afcf56635da6a906dc7343fed6576720b809ba (patch)
tree7bf699aadec0e766347b175f8dd3510c10c82293 /meme/meme.c
parent72e6384adec350a300e7c508ee027f3ec8b5857c (diff)
downloadmisc-d5afcf56635da6a906dc7343fed6576720b809ba.zip
misc-d5afcf56635da6a906dc7343fed6576720b809ba.tar.gz
misc-d5afcf56635da6a906dc7343fed6576720b809ba.tar.bz2
meme/: add marker system (for documentation); option -m marker.gp to add markers
Diffstat (limited to 'meme/meme.c')
-rw-r--r--meme/meme.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/meme/meme.c b/meme/meme.c
index 3bb7b80..f759cc7 100644
--- a/meme/meme.c
+++ b/meme/meme.c
@@ -22,6 +22,7 @@
#include "stl.h"
#include "screen.h"
#include "overlay.h"
+#include "marker.h"
#include "slice.h"
#include "gui.h"
@@ -64,7 +65,8 @@ static void overlay_xform(float x, float y, float *res_x, float *res_y)
static void usage(const char *name)
{
fprintf(stderr,
-"usage: %s [-d dump.bmp] [-l logfile] [-o overlay.gp ...] [file.stl]\n"
+"usage: %s [-d dump.bmp] [-l logfile] [-m marker.gp] [-o overlay.gp ...]\n"
+" [file.stl]\n"
" %s -s plane.gp [-n] [file.stl]\n",
name, name);
exit(1);
@@ -81,7 +83,7 @@ int main(int argc, char **argv)
unsigned n_overlays = 0;
struct time t_load;
- while ((c = getopt(argc, argv, "d:l:no:s:")) != EOF)
+ while ((c = getopt(argc, argv, "d:l:m:no:s:")) != EOF)
switch (c) {
case 'd':
screen_dump_name = optarg;
@@ -89,6 +91,9 @@ int main(int argc, char **argv)
case 'l':
logfile = optarg;
break;
+ case 'm':
+ marker_load(&marker, optarg, overlay_xform);
+ break;
case 'n':
needle = 1;
break;