image_blp/types/locator.rs
1/// Descibes where to search for mipmaps
2#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
3pub enum MipmapLocator {
4 /// Mipmaps are located inside the BLP file with given offsets
5 /// and sizes.
6 Internal {
7 offsets: [u32; 16],
8 sizes: [u32; 16],
9 },
10 /// Mipmaps are located in external files with
11 /// names <base_name>.b<zero padded number>. Ex. `.b04`, `.b10`.
12 External,
13}
14
15impl Default for MipmapLocator {
16 fn default() -> Self {
17 MipmapLocator::Internal {
18 offsets: [0; 16],
19 sizes: [0; 16],
20 }
21 }
22}