Made the initial whitespace parser
This commit is contained in:
@ -11,7 +11,8 @@ debug_draw_text :: proc( content : string, pos : Vec2, size : f32, color : rl.Co
|
||||
if len( content ) == 0 {
|
||||
return
|
||||
}
|
||||
runes := to_runes( content, context.temp_allocator )
|
||||
runes, alloc_error := to_runes( content, context.temp_allocator )
|
||||
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
|
||||
|
||||
font := font
|
||||
if font.key == Font_Default.key {
|
||||
@ -38,7 +39,8 @@ debug_draw_text_world :: proc( content : string, pos : Vec2, size : f32, color :
|
||||
if len( content ) == 0 {
|
||||
return
|
||||
}
|
||||
runes := to_runes( content, context.temp_allocator )
|
||||
runes, alloc_error := to_runes( content, context.temp_allocator )
|
||||
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
|
||||
|
||||
font := font
|
||||
if font.key == Font_Default.key {
|
||||
|
Reference in New Issue
Block a user