BoundedTileSource

Trait BoundedTileSource 

Source
pub trait BoundedTileSource: TileSource {
    // Required method
    fn bounding_rect(&self) -> OptionTileRect;
}
Expand description

A trait for types that can produce a TileDefinitionHandle upon demand, for use with drawing on tilemaps.

Required Methods§

Source

fn bounding_rect(&self) -> OptionTileRect

Calculates bounding rectangle in grid coordinates.

Implementors§