Trait ApplicationBase

Source
pub trait ApplicationBase<R: Resources, C: CommandBuffer<R>> {
    // Required methods
    fn new<F>(_: &mut F, _: Backend, _: WindowTargets<R>) -> Self
       where F: Factory<R, CommandBuffer = C>;
    fn render<D>(&mut self, _: &mut D)
       where D: Device<Resources = R, CommandBuffer = C>;
    fn get_exit_key() -> Option<VirtualKeyCode>;
    fn on(&mut self, _: WindowEvent);
    fn on_resize<F>(&mut self, _: &mut F, _: WindowTargets<R>)
       where F: Factory<R, CommandBuffer = C>;
}

Required Methods§

Source

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

Source

fn render<D>(&mut self, _: &mut D)
where D: Device<Resources = R, CommandBuffer = C>,

Source

fn get_exit_key() -> Option<VirtualKeyCode>

Source

fn on(&mut self, _: WindowEvent)

Source

fn on_resize<F>(&mut self, _: &mut F, _: WindowTargets<R>)
where F: Factory<R, CommandBuffer = C>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, C, A> ApplicationBase<R, C> for Wrap<R, C, A>
where R: Resources, C: CommandBuffer<R>, A: Application<R>,