pub trait ApplicationRender<L: ApplicationLogic>: Sized + 'static {
// Required methods
fn new(assets: &mut impl Assets) -> Self;
fn render(&mut self, gfx: &mut impl Gfx, logic: &L);
// Provided methods
fn wants_cursor_visible(&self) -> bool { ... }
fn scale_factor_changed(&mut self, _scale_factor: f64) -> Option<UVec2> { ... }
}
Required Methods§
fn new(assets: &mut impl Assets) -> Self
fn render(&mut self, gfx: &mut impl Gfx, logic: &L)
Provided Methods§
fn wants_cursor_visible(&self) -> bool
fn scale_factor_changed(&mut self, _scale_factor: f64) -> Option<UVec2>
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.