[go: up one dir, main page]

texture_packer 0.9.0

A texture packing library using the skyline heuristic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use texture::{
    Pixel,
    Texture,
};
use frame::Frame;

pub use self::skyline_packer::SkylinePacker;

mod skyline_packer;

pub trait Packer {
    type Pixel: Pixel;

    fn pack(&mut self, key: String, texture: &Texture<Pixel = Self::Pixel>) -> Option<Frame>;
    fn can_pack(&self, texture: &Texture<Pixel = Self::Pixel>) -> bool;
}