diff options
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); |
