Made font_cache use the zpl hash map, make a proper setup for how many atlases to sore in the size_table

This commit is contained in:
2024-02-27 09:32:26 -05:00
parent 4deee942a8
commit 1de141288f
4 changed files with 84 additions and 72 deletions

View File

@ -14,7 +14,7 @@ debug_draw_text :: proc( content : string, pos : Vec2, size : f32, color : rl.Co
runes := to_runes( content, context.temp_allocator )
font := font
if font == 0 {
if font.key == Font_Default.key {
// if ( len(font) == 0 ) {
font = default_font
}
@ -41,7 +41,7 @@ debug_draw_text_world :: proc( content : string, pos : Vec2, size : f32, color :
runes := to_runes( content, context.temp_allocator )
font := font
if font == 0 {
if font.key == Font_Default.key {
// if len(font) == 0 {
font = default_font
}