Struct main_game_loop::GameLoop
source · [−]pub struct GameLoop<E: AnyEngine + 'static> {
pub engine: E,
pub stop: bool,
pub frame_reporter: Reporter,
pub update_reporter: Reporter,
pub size: (f32, f32),
pub aspect: f32,
pub cursor_in: bool,
pub cursor_pos: PhysicalPosition<f64>,
pub scale_factor: f64,
pub interval: Duration,
/* private fields */
}Fields
engine: Estop: boolframe_reporter: Reporterupdate_reporter: Reportersize: (f32, f32)aspect: f32cursor_in: boolcursor_pos: PhysicalPosition<f64>scale_factor: f64interval: DurationImplementations
Trait Implementations
Auto Trait Implementations
impl<E> !RefUnwindSafe for GameLoop<E>
impl<E> !Send for GameLoop<E>
impl<E> !Sync for GameLoop<E>
impl<E> Unpin for GameLoop<E> where
E: Unpin,
impl<E> !UnwindSafe for GameLoop<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more