reloading font dynamically

This commit is contained in:
Krzosa Karol
2025-01-18 12:02:24 +01:00
parent 68683c0218
commit 469c0c8ec3
9 changed files with 101 additions and 750 deletions

View File

@@ -496,3 +496,16 @@ f32 f32_atan2(f32 y, f32 x) {
else if (y >= 0) return F32_PI + f32_atan(y / x);
else return -F32_PI + f32_atan(y / x);
}
b32 f32_are_equal(f32 a, f32 b) {
f32 diff = f32_abs(a - b);
b32 result = diff <= 0.00001f;
return result;
}
b32 f64_are_equal(f64 a, f64 b) {
f64 diff = f64_abs(a - b);
b32 result = diff <= 0.00001;
return result;
}