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

Time between frames in as Duration.

Time between frames in seconds.

Time since loop was started as Duration.

Time since loop was started in seconds.

Current frame id.

Current framerate.

Current state id for mainloop()'s state_callback.

Trait Implementations

impl Copy for LoopState
[src]

impl Clone for LoopState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for LoopState

impl Sync for LoopState