Skip to main content

CotisFrameContext

Trait CotisFrameContext 

Source
pub trait CotisFrameContext {
    // Required method
    fn get_delta_time(&self) -> f32;
}
Expand description

Provides frame timing data.

Required Methods§

Source

fn get_delta_time(&self) -> f32

Returns delta time in seconds since the previous frame.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§