summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/text.h b/src/text.h
index 037fc2f..30a8893 100644
--- a/src/text.h
+++ b/src/text.h
@@ -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);