image-atlas
This library provides a general-purpose texture atlas generator with a focus on ease of use and simplicity.
There are multiple generation methods and mip map options.
- No padding between elements
- With padding between elements
- With smart padding between elements for mip map generation.
This library uses image
crate for image processing and rectangle-pack
crate for computing element layout.
Examples
use *;
let atlas = create_atlas
.unwrap;
let texcoord = &atlas.texcoords;
let texture = &atlas.textures.mip_maps;