Struct mosaic::TileSet[][src]

pub struct TileSet<Key: Hash + Eq> { /* fields omitted */ }

A set of tiles made from a tilesheet image.


impl<Key: Hash + Eq> TileSet<Key>

Create a new TileSet from an image and tile size.

Register a tile from the tilesheet to the TileSet with the lookup value of key.

Queue a tile with the lookup value key to be drawn at draw_location, with optional drawing options.

Clear the tile queue.

Draw the tiles using ctx.

Auto Trait Implementations

impl<Key> Send for TileSet<Key> where
    Key: Send

impl<Key> Sync for TileSet<Key> where
    Key: Sync