diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 08:05:24 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 08:05:24 +0100 |
| commit | f1649953a4c24075389237416d10dc513d21da14 (patch) | |
| tree | f810c9e628af68c79c399d7163970d8315fcf10e /src/text.h | |
| parent | 22590b99e826b6ad16303d39b47f4925e9e45c22 (diff) | |
meshing
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -71,3 +71,14 @@ enum font_error_e wayc_font_raster_text(struct font_s* font, const char* text, usize max_glyphs); void wayc_font_deinit(struct font_s* font); + +struct text_mesh_s { + struct text_vertex_s* vertices; + usize vertex_count; + u16* indices; + usize index_count; +}; + +bool wayc_text_mesh_init(struct text_mesh_s* mesh, const char* text, + usize text_len, struct font_s* font); +void wayc_text_mesh_deinit(struct text_mesh_s* mesh); |
