Trait ochre::TileBuilder[][src]

pub trait TileBuilder {
    fn tile(&mut self, x: i16, y: i16, data: [u8; 64]);
fn span(&mut self, x: i16, y: i16, width: u16); }

A trait to implement for consuming the tile data produced by [rasterize()].

Required methods

fn tile(&mut self, x: i16, y: i16, data: [u8; 64])[src]

Called with the position and data of an alpha mask tile.

fn span(&mut self, x: i16, y: i16, width: u16)[src]

Called with the position and width of a solid interior span.

The height of a span is always TILE_SIZE pixels.

Loading content...

Implementors

Loading content...