changes to sectr module based on VEFontCache changes

This commit is contained in:
2024-06-26 15:23:44 -04:00
parent 470197cb6c
commit e6ccdd90d1
5 changed files with 14 additions and 312 deletions

View File

@ -50,6 +50,7 @@ import fmt_io "core:fmt"
str_tmp_from_any :: fmt_io.tprint
import "core:math"
ceil_f32 :: math.ceil_f32
import "core:mem"
align_forward_int :: mem.align_forward_int

View File

@ -11,3 +11,7 @@ is_power_of_two_u32 :: #force_inline proc "contextless" ( value : u32 ) -> b32
{
return value != 0 && ( value & ( value - 1 )) == 0
}
Vec2 :: [2]f32
@(require_results) ceil_vec2 :: proc "contextless" ( v : Vec2 ) -> Vec2 { return { ceil_f32(v.x), ceil_f32(v.y) } }