6 releases (3 breaking)
0.6.1 | Oct 9, 2022 |
---|---|
0.6.0 | Oct 7, 2022 |
0.5.1 | Aug 24, 2022 |
0.4.0 | May 13, 2022 |
0.3.0 | Feb 25, 2022 |
#2017 in Game dev
36KB
263 lines
Bevy Texture Atlas Tools
Collection of tools for working with Bevy Texture Atlases.
Version 0.6
- Disabled Bevy default features. The crate only uses
render
andbevy_asset
now.
Version 0.5
- Supports Bevy 0.8
- Added an example for
TextureAtlasPaddedBuilder
.
Version 0.4
- Supports Bevy 0.7
Version 0.3 Updates
- The heterogeneous texture atlas loader has been split into its own crate https://crates.io/crates/bevy_heterogeneous_texture_atlas_loader
- Sprite merging now implemented with an extension trait
MergeSpritesExt
onTextureAtlas
. - versions <0.4 support Bevy 0.6
Features
- Merge sprites within an atlas.
- Merge multiple
TextureAtlas
s into a single largerTextureAtlas
. - Alternative
TextureAtlasBuilder
,TextureAtlasPaddedBuilder
that automatically adds border padding to sprites.
Usage
To use this crate, add this line to the [dependencies]
section of your project's Cargo.toml
file:
bevy_texture_atlas_tools = "0.5"
Examples
Minimal example that builds a texture atlas with 8 x 8 padding around each sprite, run with:
cargo run --example padded_atlas
Dependencies
~35–49MB
~851K SLoC