[−][src]Struct fumarole::application::Application
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]
F: FnMut(&mut Loader) -> Box<dyn State>,
Runs the application and takes a closure that returns a Box containing the first state
Auto Trait Implementations
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,