Skip to main content

load_sprites

Function load_sprites 

Source
pub fn load_sprites(dir: &Path) -> Result<Vec<Sprite>>
Expand description

Load all .png files under dir (recursive).

Names are relative paths with / separators and without the .png suffix, sorted lexicographically for deterministic packing.