summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/text.h b/text.h
index 0232f42..b0629b9 100644
--- a/text.h
+++ b/text.h
@@ -61,4 +61,11 @@ extern void text_render_char(Font *font, TextRenderState *state, char32_t c);
// Free memory used by font.
extern void text_font_free(Font *font);
+// The "default" text rendering state - everything you need to just render text normally.
+// This lets you do stuff like:
+// TextRenderState state = text_render_state_default;
+// (set a few options)
+// text_render_with_state(font, &state, ...)
+extern TextRenderState const text_render_state_default;
+
#endif