Struct packr2::SplitPacker
source · [−]pub struct SplitPacker { /* private fields */ }Expand description
Derived from the lightmap packer
but uses a vector instead a tree, sourced from rectpack2D
Performs really porly with unsorted input data, is best used to bake spritesheets
Implementations
sourceimpl SplitPacker
impl SplitPacker
pub fn new(config: PackerConfig) -> Self
Trait Implementations
sourceimpl Clone for SplitPacker
impl Clone for SplitPacker
sourcefn clone(&self) -> SplitPacker
fn clone(&self) -> SplitPacker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SplitPacker
impl Send for SplitPacker
impl Sync for SplitPacker
impl Unpin for SplitPacker
impl UnwindSafe for SplitPacker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more