pub struct Header { /* private fields */ }Implementations§
Source§impl Header
impl Header
pub const fn version(&self) -> Version
pub const fn header_size(&self) -> u32
pub const fn width(&self) -> u16
pub const fn height(&self) -> u16
pub const fn flags(&self) -> TextureFlags
pub const fn frame_count(&self) -> u16
pub const fn start_frame(&self) -> u16
pub const fn reflectivity(&self) -> [f32; 3]
pub const fn bump_map_scale(&self) -> f32
Sourcepub const fn image_format_id(&self) -> i32
pub const fn image_format_id(&self) -> i32
Raw image-format ID as it appeared in this VTF version’s enum.
Sourcepub const fn image_format(&self) -> ImageFormat
pub const fn image_format(&self) -> ImageFormat
Normalized image format. IDs 36–38 in VTF 7.0–7.4 are mapped to
their VTF 7.5 names while Header::image_format_id remains lossless.
pub const fn mip_count(&self) -> u8
pub const fn thumbnail_format_id(&self) -> i32
pub const fn thumbnail_format(&self) -> Option<ImageFormat>
pub const fn thumbnail_width(&self) -> u8
pub const fn thumbnail_height(&self) -> u8
pub const fn depth(&self) -> u16
pub const fn resource_count(&self) -> u32
Sourcepub const fn face_count(&self) -> u8
pub const fn face_count(&self) -> u8
Number of stored faces, including the legacy sphere-map face where the 7.1–7.4 header says it is present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more