aboutsummaryrefslogtreecommitdiff
path: root/src/math.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-03 22:25:00 -0500
committeriamcheeseman <[hidden email]>2026-02-03 22:25:00 -0500
commit3d1d31538d30a7f161f9f2b6d5e075ec69d3b860 (patch)
tree8b0deceb38c288dbef361bb4f77bb681b5566525 /src/math.odin
parent1c605da3ff8dc4295d2f9a85f5b7c8891ca84464 (diff)
ditch raylib (icky, and for loser BEGINNERS)
Diffstat (limited to 'src/math.odin')
-rw-r--r--src/math.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math.odin b/src/math.odin
index 0cd2a27..131da63 100644
--- a/src/math.odin
+++ b/src/math.odin
@@ -3,7 +3,7 @@ package demonchime
import "core:math"
import "core:math/linalg"
-import rl "vendor:raylib"
+import "fw"
dt_lerp :: proc {
dt_lerp_f32,
@@ -11,7 +11,7 @@ dt_lerp :: proc {
}
dt_lerp_f32 :: proc(a: f32, b: f32, t: f32) -> f32 {
- dt := rl.GetFrameTime()
+ dt := f32(fw.get_delta_time())
return math.lerp(b, a, math.pow(0.5, dt * t))
}