Crate texture_packer

source ·
Expand description

Library for packing different textures into a texture atlas for efficient GPU rendering.


  • Defines a trait for exporting Textures to arbitrary data.
  • Defines a trait for importing arbitrary data and converting them to Textures.
  • Traits for a texture and its pixel contents.


  • Boundaries and properties of a packed texture.
  • Texture packer supporting multiple atlases.
  • Defines a rectangle in pixels with the origin at the top-left of the texture atlas.
  • Packs textures into a single texture atlas.
  • Configuration for a texture packer.