summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-20 07:28:34 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-20 07:28:34 +0100
commitaa91346da4c829c277300a0e52e6cc56f64aa80a (patch)
treecfc81682173fcb66140a59d21134b32d42db657f /src/text.h
parent18a3a38a2b7a41ed8577b9e34dc28cc6fc47f4e3 (diff)
text groupHEADmaster
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/text.h b/src/text.h
index aed11ed..ad3d8af 100644
--- a/src/text.h
+++ b/src/text.h
@@ -79,3 +79,19 @@ struct text_mesh_s {
bool wayc_text_mesh_init(struct text_mesh_s* mesh, const char* text,
usize text_len, struct font_s* font, vec2 position);
void wayc_text_mesh_deinit(struct text_mesh_s* mesh);
+
+struct text_group_s {
+ struct font_s* font;
+ sg_buffer vbuf;
+ sg_buffer ebuf;
+ usize index_count;
+ usize glyph_count;
+ usize glyph_capacity;
+};
+
+bool wayc_text_group_init(struct text_group_s* group, struct font_s* font,
+ usize glyph_capacity);
+void wayc_text_group_begin(struct text_group_s* group);
+void wayc_text_group_end(struct text_group_s* group,
+ struct font_context_s* context);
+void wayc_text_group_deinit(struct text_group_s* group);