diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-20 07:28:34 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-20 07:28:34 +0100 |
| commit | aa91346da4c829c277300a0e52e6cc56f64aa80a (patch) | |
| tree | cfc81682173fcb66140a59d21134b32d42db657f /src/text.h | |
| parent | 18a3a38a2b7a41ed8577b9e34dc28cc6fc47f4e3 (diff) | |
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); |
