pub struct Graphics { /* private fields */ }
Stores sprite and tag data returned by include_aseprite.
Gets the tag map from the aseprite files. This allows reference to sprite sequences by name.
21
static TAG_MAP: &TagMap = GRAPHICS.tags();
Gets a big list of the sprites themselves. Using tags is often easier.
20
static SPRITES: &[Sprite] = GRAPHICS.sprites();
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.
[From]<T> for U