Odin is nice.

This commit is contained in:
2024-01-21 23:38:02 -05:00
parent d0c016a355
commit 3b259f2893
13 changed files with 400 additions and 107 deletions

View File

@ -4,15 +4,15 @@ import "core:unicode/utf8"
import rl "vendor:raylib"
font_rec_mono_semicasual_reg : rl.Font;
default_font : rl.Font
font_rec_mono_semicasual_reg : Font;
default_font : Font
debug_text :: proc( content : string, x, y : f32, size : f32 = 16.0, color : rl.Color = rl.WHITE, font : rl.Font = default_font )
{
if len( content ) == 0 {
return
}
runes := utf8.string_to_runes( content )
runes := utf8.string_to_runes( content, context.temp_allocator )
rl.DrawTextCodepoints( font,
raw_data(runes), cast(i32) len(runes),