aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/text.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-23 01:39:57 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-23 01:39:57 +0200
commit898b8c95f1f904307c02e978b57301cf1cb0560f (patch)
treed0bf51298967533ffb3ca6565ee309948820cf3f /include/mgl/graphics/text.h
parentdf2e6771c5bf6f09e62f9d6b86d83a2631ea365f (diff)
Allow rendering vertices directly
Diffstat (limited to 'include/mgl/graphics/text.h')
-rw-r--r--include/mgl/graphics/text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/graphics/text.h b/include/mgl/graphics/text.h
index 0356e82..33c75d0 100644
--- a/include/mgl/graphics/text.h
+++ b/include/mgl/graphics/text.h
@@ -18,6 +18,8 @@ typedef struct {
int mgl_text_init(mgl_text *self, mgl_font *font, const char *text, float x, float y);
void mgl_text_deinit(mgl_text *self);
+/* Note: keeps a reference to |text|. |text| needs to be valid as long as |self| is used. */
+void mgl_text_set_string(mgl_text *self, const char *str);
void mgl_text_set_position(mgl_text *self, mgl_vec2f position);
void mgl_text_set_color(mgl_text *self, mgl_color color);
void mgl_text_draw(mgl_context *context, mgl_text *text);