summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
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);