swamp_advanced_game

Trait ApplicationRender

Source
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§

Source

fn new(assets: &mut impl Assets) -> Self

Source

fn render(&mut self, gfx: &mut impl Gfx, logic: &L)

Provided Methods§

Source

fn wants_cursor_visible(&self) -> bool

Source

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.

Implementors§