diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-18 12:17:14 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 12:17:14 +0100 |
commit | f4833afa1afa56def5a6d54fa8ce22d3a9b4eb55 (patch) | |
tree | 04028456c206ec3ad999320dee2a2dbf3c4ab3e4 /include/mgl/graphics/font.h | |
parent | ff6d302d7b0ef4c32dca6e2d0ce12927d517875a (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.h | 3 |
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; |