[][src]Struct fumarole::application::Application

pub struct Application { /* fields omitted */ }

This is the struct responsible for running the program.

Methods

impl Application[src]

pub fn new() -> Application[src]

Creates a new application

pub fn with_title(self, title: &'static str) -> Application[src]

Sets the title of the application

pub fn with_fps(self, fps: f32) -> Application[src]

Sets the fps of the application

pub fn with_frame_size(self, width: f32, height: f32) -> Application[src]

Sets the fame size

pub fn not_resizable(self) -> Application[src]

Sets the window of the application to non-resizable

pub fn with_window_size(self, width: u32, height: u32) -> Application[src]

Sets the window size of the application

pub fn with_pixel_window_size(self, width: u32, height: u32) -> Application[src]

Starts the application in pixel-mode with a given size

pub fn with_depth_sorting(self, depth_sorting: bool) -> Application[src]

Enables depth sorting

pub fn run<F>(self, start: F) where
    F: FnMut(&mut Loader) -> Box<dyn State>, 
[src]

Runs the application and takes a closure that returns a Box containing the first state

Auto Trait Implementations

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.