#texture-atlas #atlas #texture

bevy_texture_atlas_tools

tools for working with Bevy Texture Atlases

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

MIT/Apache

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 and bevy_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

Features

  • Merge sprites within an atlas.
  • Merge multiple TextureAtlas s into a single larger TextureAtlas.
  • 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