From 11dc980a40b4743b52ad4d88d91659e0cd413794 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Thu, 12 Feb 2026 00:09:56 +0100 Subject: this drives me crazy --- src/text.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index 037fc2f..30a8893 100644 --- a/src/text.h +++ b/src/text.h @@ -16,6 +16,8 @@ struct text_vertex_s { vec2 uv; }; +typedef u32 text_index_t; + enum font_context_error_e { FONT_CONTEXT_ERROR_NONE, FONT_CONTEXT_ERROR_LIBRARY_LOADING, @@ -73,5 +75,6 @@ struct text_s { #define WAYC_TEXT_INIT(font, atlas, packer, string) \ text_s { font, atlas, packer, string } -enum text_error_e wayc_text_vertices(struct text_s* text, - struct text_vertex_s** out); +enum text_error_e wayc_text_assemble(struct text_s* text, usize* out_size, + text_index_t** out_indices, + struct text_vertex_s** out_verts); -- cgit v1.2.3