Animation start
This commit is contained in:
parent
4de20264fa
commit
18e6f23d2b
3 changed files with 59 additions and 21 deletions
|
|
@ -5,7 +5,7 @@ import "base:runtime"
|
|||
|
||||
WINDOW_WIDTH :: 1280
|
||||
WINDOW_HEIGHT :: 720
|
||||
WINDOW_FRAMERATE :: 30
|
||||
WINDOW_FRAMERATE :: 60
|
||||
WINDOW_CAPTION :: "Transformation Visualizer"
|
||||
|
||||
init :: proc() {
|
||||
|
|
@ -40,3 +40,7 @@ should_run :: proc() -> bool {
|
|||
}
|
||||
return true
|
||||
}
|
||||
|
||||
delta_time_fraction :: proc() -> f32 {
|
||||
return rl.GetFrameTime() / (1.0 / WINDOW_FRAMERATE)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue