Trait TileMapEffect

Source
pub trait TileMapEffect: Send + Debug {
    // Required method
    fn render_special_tiles(&self, context: &mut TileMapRenderContext<'_, '_>);
}
Expand description

A trait for objects that can perform specialized rendering for a tile map by adding them to TileMap::before_effects or TileMap::after_effects, depending on whether the effect should render before the tile map renders or after the tile map renders.

Required Methods§

Source

fn render_special_tiles(&self, context: &mut TileMapRenderContext<'_, '_>)

Use the given context to render the special effect for the TileMap.

Implementors§