aboutsummaryrefslogtreecommitdiff
path: root/src/math.odin
diff options
context:
space:
mode:
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))
}