[][src]Struct texture_packer::TexturePackerConfig

pub struct TexturePackerConfig {
    pub max_width: u32,
    pub max_height: u32,
    pub allow_rotation: bool,
    pub border_padding: u32,
    pub texture_padding: u32,
    pub trim: bool,
    pub texture_outlines: bool,
}

Fields

max_width: u32

Max width of the packed image. Default value is 1024.

max_height: u32

Max height of the packed image. Default value is 1024.

allow_rotation: bool

True to allow rotation of the input images. Default value is true.

border_padding: u32

Size of the padding on the outer edge of the packed image in pixel. Default value is 0.

texture_padding: u32

Size of the padding between frames in pixel. Default value is 2

trim: bool

True to trim the empty pixels of the input images. Default value is true.

texture_outlines: bool

True to draw the red line on the edge of the each frames. Useful for debugging. Default value is false.

Trait Implementations

impl Copy for TexturePackerConfig
[src]

impl Default for TexturePackerConfig
[src]

impl Clone for TexturePackerConfig
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]