INNER CODE UNIT · Rust

dt

lemunozm/ruscii · src/app.rs:67

    pub fn dt(&self) -> &time::Duration {
        &self.dt
    }

    pub fn step(&self) -> usize {
        self.step
    }
}

/// The essential parts of the application, containing its [`Config`], [`State`], and [`Window`].
///
/// [`App`] objects are created with a default maximum framerate of 30 using [`App::default`].
/// To change this, pass a [`Config`] object with the desired framerate using [`App::config`].
#[derive(Default)]
pub struct App {
    config: Config,
    state: State,
    window: Window,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…