1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use std::default::Default;
#[derive(Copy, Clone)]
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,
}
impl Default for TexturePackerConfig {
fn default() -> TexturePackerConfig {
TexturePackerConfig {
max_width: 1024,
max_height: 1024,
allow_rotation: true,
border_padding: 0,
texture_padding: 2,
trim: true,
texture_outlines: false,
}
}
}