[go: up one dir, main page]

texture_packer 0.24.0

A texture packing library using the skyline heuristic
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{frame::Frame, rect::Rect};

pub use self::skyline_packer::SkylinePacker;

mod skyline_packer;

pub trait Packer<K> {
    fn pack(&mut self, key: K, texture_rect: &Rect) -> Option<Frame<K>>;
    fn can_pack(&self, texture_rect: &Rect) -> bool;
}