image-atlas
This library provides a texture atlas generator for general purpose. This library focuses on ease of use and simplicity.
There are multiple generation way
- No padding between texture elements
- With padding between texture elements
- With smart padding between texture elements for mip map generation.
and mip map generation option each texture elements
- Clamp
- Repeat
- Mirror
This library uses image crate for image backend and rectangle-pack crate for computing placements of atlas texture elements.
Examples
use *;
let atlas = create_atlas
.unwrap;
println!;
Installation
cargo add image image-atlas
License
This library is licensed under the MIT license.