yatp_cli/
lib.rs

1#![deny(warnings, missing_docs, unsafe_code, nonstandard_style)]
2
3//!
4//! YATP (Yet Another Texture Packer)
5//!
6//! A small and simple CLI application to pack multiple textures/sprites into a texture atlas/sprite sheet.
7//!
8
9mod cli;
10mod context;
11pub mod dictionary;
12mod format;
13mod packer;
14
15pub use cli::Cli;
16pub use context::Context;
17pub use format::DictionaryFormat;
18pub use format::ImageFormat;
19pub use packer::Packer;
20
21/// Alias for euclid's Size2D of 2 unsigned 32-bit integers
22pub type Size = euclid::Size2D<u32, u32>;
23
24/// Alias for euclid's Point2D of 2 unsigned 32-bit integers
25pub type Point = euclid::Point2D<u32, u32>;
26
27/// Alias for euclid's Rect of 2 unsigned 32-bit integers
28pub type Rect = euclid::Rect<u32, u32>;
29
30/// Alias for image's RGBA color of 8-bit unsigned byte per color channel
31pub type Color = image::Rgba<u8>;