Trait kludgine::tilemap::Object

source ·
pub trait Object: Debug + Send + 'static {
    // Required methods
    fn position(&self) -> Point<Px>;
    fn render(
        &self,
        center: Point<Px>,
        zoom: f32,
        context: &mut Renderer<'_, '_>
    ) -> Option<Duration>;
}

Required Methods§

source

fn position(&self) -> Point<Px>

source

fn render( &self, center: Point<Px>, zoom: f32, context: &mut Renderer<'_, '_> ) -> Option<Duration>

Implementors§