Struct mold2d::sprite::Spritesheet [] [src]

pub struct Spritesheet { /* fields omitted */ }

A spritesheet manager that returns sprites within a range

Methods

impl Spritesheet
[src]

Loads a spritesheet given a configuration object and a SDL2 renderer

Returns a Vec of sprites within a certain range. The number of the start and end ranges are from row to row wrapping around. For example a 3x3 grid would have indexes like this: 0 1 2 3 4 5 6 7 8