[][src]Struct tge::engine::Engine

pub struct Engine { /* fields omitted */ }

Implementations

impl Engine[src]

pub fn filesystem(&mut self) -> &mut Filesystem[src]

pub fn window(&mut self) -> &mut Window[src]

pub fn graphics(&mut self) -> &mut Graphics[src]

pub fn timer(&mut self) -> &mut Timer[src]

pub fn keyboard(&mut self) -> &mut Keyboard[src]

pub fn mouse(&mut self) -> &mut Mouse[src]

pub fn touch(&mut self) -> &mut Touch[src]

pub fn touchpad(&mut self) -> &mut Touchpad[src]

pub fn gamepad(&mut self) -> &mut Gamepad[src]

pub fn audio(&mut self) -> &mut Audio[src]

pub fn quit(&mut self)[src]

pub fn exit(&mut self, error: GameError)[src]

pub fn run(&mut self, game: &mut impl Game) -> GameResult[src]

pub fn run_with<G, F>(&mut self, init: F) -> GameResult where
    G: Game,
    F: FnOnce(&mut Self) -> GameResult<G>, 
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Engine

impl !Send for Engine

impl !Sync for Engine

impl Unpin for Engine

impl !UnwindSafe for Engine

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.