Function packr2::pack

source · []
pub fn pack<P: Packer, K: Copy>(
    inputs: &mut Vec<RectInput<K>>,
    packer: P
) -> Vec<RectOutput<K>>
Expand description

Sorts the input data using the heuristics defined in RECT_SORT_FUNCTIONS to find the best possible packing, the results might end up been inside multiple atlases.

The output is sorted by atlas.