summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:51:24 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:51:24 -0500
commitf6fe651ed8bedb0308f75a7b15ef913add799848 (patch)
tree0cae260a2ee614994e33eceacae537e97b0aaf9c /text.h
parentdd3887ec47137b6bf993674356a73b3266bb8a51 (diff)
switched all text rendering to new API
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index 0f0ba68..e3e2b79 100644
--- a/text.h
+++ b/text.h
@@ -60,6 +60,8 @@ extern void text_chars_begin(Font *font);
extern void text_chars_end(Font *font);
// Render a single character.
extern void text_render_char(Font *font, TextRenderState *state, char32_t c);
+// Render a null-terminated UTF-8 string (must be within text_chars_begin/end).
+extern void text_render_chars_utf8(Font *font, TextRenderState *state, char const *str);
// Free memory used by font.
extern void text_font_free(Font *font);