diff options
Diffstat (limited to 'src/text.h')
| -rw-r--r-- | src/text.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |
