separate font module and font now allocates in arena
This commit is contained in:
parent
be51e37231
commit
7ff787f71f
2 changed files with 9 additions and 6 deletions
|
|
@ -74,7 +74,7 @@ fn int main(String[] args)
|
|||
// FONT LOADING //
|
||||
// ========================================================================================== //
|
||||
// import font in the ui context
|
||||
ui.load_font("font1", "resources/hack-nerd.ttf", 16)!!;
|
||||
ui.load_font(&arena, "font1", "resources/hack-nerd.ttf", 16)!!;
|
||||
|
||||
// set the renderer's font atlas
|
||||
ren.font_atlas_id = ui.get_font_id("font1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue