summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
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