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,
}
Max width of the packed image. Default value is 1024
.
Max height of the packed image. Default value is 1024
.
True to allow rotation of the input images. Default value is true
.
Size of the padding on the outer edge of the packed image in pixel. Default value is 0
.
Size of the padding between frames in pixel. Default value is 2
True to trim the empty pixels of the input images. Default value is true
.
True to draw the red line on the edge of the each frames. Useful for debugging. Default
value is false
.
Returns the "default value" for a type. Read more
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static