summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:45:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 15:45:58 -0500
commit5230cb1533d9e30e9870975cba2cd7e7e86bc22a (patch)
tree260c4bac7a1624eb5cc4cbba492d7822aee260d7 /text.h
parent31b5649b131695300f39563640c4af8f0d3032cb (diff)
started tab bar
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