aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/font.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-18 12:17:14 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 12:17:14 +0100
commitf4833afa1afa56def5a6d54fa8ce22d3a9b4eb55 (patch)
tree04028456c206ec3ad999320dee2a2dbf3c4ab3e4 /include/mgl/graphics/font.h
parentff6d302d7b0ef4c32dca6e2d0ce12927d517875a (diff)
Move glyph creation for text to render function instead of in set string, clear font glyph background before rendering the text
Diffstat (limited to 'include/mgl/graphics/font.h')
-rw-r--r--include/mgl/graphics/font.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mgl/graphics/font.h b/include/mgl/graphics/font.h
index 4bd0428..118a867 100644
--- a/include/mgl/graphics/font.h
+++ b/include/mgl/graphics/font.h
@@ -25,7 +25,8 @@ typedef struct {
} mgl_font_atlas;
struct mgl_font {
- mgl_texture texture; /* Font texture coordinates are in pixel space */
+ /* Font texture coordinates are in pixel space. Note: the texture id may change */
+ mgl_texture texture;
mgl_font_atlas font_atlas;
unsigned int character_size;
mgl_font_char_map char_map;