summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
commitc3fd9dfa23969c842991da4cd852330288889463 (patch)
tree1a2e390ae57109febea9a5853ef9f04559d1f820 /text.h
parentc376f6f53f737d6220206baa323c0bc62d48a9f0 (diff)
started text rendering
Diffstat (limited to 'text.h')
-rw-r--r--text.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/text.h b/text.h
new file mode 100644
index 0000000..c855ec9
--- /dev/null
+++ b/text.h
@@ -0,0 +1,11 @@
+#ifndef TEXT_H_
+#define TEXT_H_
+
+typedef struct Font Font;
+
+char const *text_get_err(void);
+extern Font *text_font_load(char const *ttf_filename, float font_size);
+extern void text_render(Font *font, char const *text, float x, float y);
+extern void text_get_size(Font *font, char const *text, float *width, float *height);
+
+#endif