Trait gfx_app::Application [] [src]

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: Event) { ... } fn launch_simple(name: &str)
    where
        Self: Application<DefaultResources>
, { ... } fn launch_default(wb: WindowBuilder)
    where
        Self: Application<DefaultResources>
, { ... } }

Required Methods

Provided Methods

Implementors