Macro agb::include_aseprite

source ·
macro_rules! include_aseprite {
    ($($aseprite_path: expr),*) => { ... };
}
Expand description

Includes sprites found in the referenced aseprite files. Can include multiple at once and optimises palettes of all included in the single call together. See Size for supported sizes. Returns a reference to Graphics.

const GRAPHICS: &Graphics = include_aseprite!(
    "examples/gfx/boss.aseprite",
    "examples/gfx/objects.aseprite"
);

The tags from the aseprite file are included so you can refer to sprites by name in code. You should ensure tags are unique as this is not enforced by aseprite.