Struct cuivre::graphics::sprites::SpriteSheet[][src]

pub struct SpriteSheet { /* fields omitted */ }

Represents a texture sliced into rectangular sprites.

This consumes the Texture.

Methods

impl SpriteSheet
[src]

Creates a new sprite sheet from a texture and sprite size (in pixels).

Retrieves the sprite at selected position on the grid.

Trait Implementations

impl Debug for SpriteSheet
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SpriteSheet

impl Sync for SpriteSheet