[][src]Trait gfx_app::Application

pub trait Application<R: Resources>: Sized {
    fn new<F: Factory<R>>(_: &mut F, _: Backend, _: WindowTargets<R>) -> Self;
fn render<C: CommandBuffer<R>>(&mut self, _: &mut Encoder<R, C>); fn get_exit_key() -> Option<VirtualKeyCode> { ... }
fn on_resize(&mut self, WindowTargets<R>) { ... }
fn on_resize_ext<F: Factory<R>>(
        &mut self,
        _factory: &mut F,
        targets: WindowTargets<R>
    ) { ... }
fn on(&mut self, _event: WindowEvent) { ... }
fn launch_simple(name: &str)
    where
        Self: Application<DefaultResources>
, { ... }
fn launch_default(wb: WindowBuilder)
    where
        Self: Application<DefaultResources>
, { ... } }

Required methods

fn new<F: Factory<R>>(_: &mut F, _: Backend, _: WindowTargets<R>) -> Self

fn render<C: CommandBuffer<R>>(&mut self, _: &mut Encoder<R, C>)

Loading content...

Provided methods

fn get_exit_key() -> Option<VirtualKeyCode>

fn on_resize(&mut self, WindowTargets<R>)

fn on_resize_ext<F: Factory<R>>(
    &mut self,
    _factory: &mut F,
    targets: WindowTargets<R>
)

fn on(&mut self, _event: WindowEvent)

fn launch_simple(name: &str) where
    Self: Application<DefaultResources>, 

fn launch_default(wb: WindowBuilder) where
    Self: Application<DefaultResources>, 

Loading content...

Implementors

Loading content...