summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-12 00:09:56 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-12 00:09:56 +0100
commit11dc980a40b4743b52ad4d88d91659e0cd413794 (patch)
tree4ce0fdee90ba58897d48cc9400a5e92930d85ebe /src/text.h
parent6013bac1556659f1685170b5e68752189f0b93ba (diff)
this drives me crazy
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);