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§
fn new<F>(_: &mut F, _: Backend, _: WindowTargets<R>) -> Selfwhere
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>,
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.