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,
}Expand description
Passed to renderloop() and mainloop() callbacks.
Fields§
§delta: DurationTime between frames in as Duration.
delta_f32: f32Time between frames in seconds.
elapsed: DurationTime since loop was started as Duration.
elapsed_f32: f32Time since loop was started in seconds.
frame_id: u64Current frame id.
fps: u32Current framerate.
state_id: u32Current state id for mainloop()’s state_callback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopState
impl RefUnwindSafe for LoopState
impl Send for LoopState
impl Sync for LoopState
impl Unpin for LoopState
impl UnwindSafe for LoopState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more