Struct radiant_utils::loops::LoopState [−][src]
pub struct LoopState { pub delta: Duration, pub delta_f32: f32, pub elapsed: Duration, pub elapsed_f32: f32, pub frame_id: u64, pub fps: u32, pub state_id: u32, }
Passed to renderloop()
and mainloop()
callbacks.
Fields
delta: Duration
Time between frames in as Duration.
delta_f32: f32
Time between frames in seconds.
elapsed: Duration
Time since loop was started as Duration.
elapsed_f32: f32
Time since loop was started in seconds.
frame_id: u64
Current frame id.
fps: u32
Current framerate.
state_id: u32
Current state id for mainloop()
's state_callback
.