From aa91346da4c829c277300a0e52e6cc56f64aa80a Mon Sep 17 00:00:00 2001 From: Fabrice Date: Fri, 20 Feb 2026 07:28:34 +0100 Subject: text group --- src/text.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index aed11ed..ad3d8af 100644 --- a/src/text.h +++ b/src/text.h @@ -79,3 +79,19 @@ struct text_mesh_s { bool wayc_text_mesh_init(struct text_mesh_s* mesh, const char* text, usize text_len, struct font_s* font, vec2 position); void wayc_text_mesh_deinit(struct text_mesh_s* mesh); + +struct text_group_s { + struct font_s* font; + sg_buffer vbuf; + sg_buffer ebuf; + usize index_count; + usize glyph_count; + usize glyph_capacity; +}; + +bool wayc_text_group_init(struct text_group_s* group, struct font_s* font, + usize glyph_capacity); +void wayc_text_group_begin(struct text_group_s* group); +void wayc_text_group_end(struct text_group_s* group, + struct font_context_s* context); +void wayc_text_group_deinit(struct text_group_s* group); -- cgit v1.2.3