summaryrefslogtreecommitdiff
path: root/meme/text.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-14 05:39:48 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-14 05:39:48 (GMT)
commite2dc06ebc066399e7274a6627127f725e1f07b17 (patch)
treef901ec1c8f177a1bb1c5c5e08427b62c0636d345 /meme/text.h
parentd29d97b74306e97353414023d768775c9593de81 (diff)
downloadmisc-e2dc06ebc066399e7274a6627127f725e1f07b17.zip
misc-e2dc06ebc066399e7274a6627127f725e1f07b17.tar.gz
misc-e2dc06ebc066399e7274a6627127f725e1f07b17.tar.bz2
meme/: show measurement results on screen
Diffstat (limited to 'meme/text.h')
-rw-r--r--meme/text.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/meme/text.h b/meme/text.h
new file mode 100644
index 0000000..f9e84de
--- /dev/null
+++ b/meme/text.h
@@ -0,0 +1,30 @@
+/*
+ * text.h - Text rendering
+ *
+ * Written 2014 by Werner Almesberger
+ * Copyright 2014 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+
+#ifndef TEXT_H
+#define TEXT_H
+
+#include <stdarg.h>
+
+#include "SDL.h"
+
+
+extern const char *text_font;
+
+
+void text_color(Uint32 rgba);
+SDL_Surface *text(const char *s);
+SDL_Surface *textf(const char *fmt, ...);
+SDL_Surface *vtextf(const char *fmt, va_list ap);
+
+#endif /* !TEXT_H */