pub enum BlpFlags {
Blp2 {
compression: Compression,
alpha_bits: u8,
alpha_type: u8,
has_mipmaps: u8,
},
Old {
alpha_bits: u32,
extra: u32,
has_mipmaps: u32,
},
}
Expand description
Part of header that depends on the version
Variants§
Implementations§
Source§impl BlpFlags
impl BlpFlags
Sourcepub fn has_mipmaps(&self) -> bool
pub fn has_mipmaps(&self) -> bool
Returns ‘true’ if the header defines that the image has mipmaps
Sourcepub fn alpha_bits(&self) -> u32
pub fn alpha_bits(&self) -> u32
Get count of bits alpha channel is encoded in content
Trait Implementations§
Source§impl Ord for BlpFlags
impl Ord for BlpFlags
Source§impl PartialOrd for BlpFlags
impl PartialOrd for BlpFlags
impl Eq for BlpFlags
impl StructuralPartialEq for BlpFlags
Auto Trait Implementations§
impl Freeze for BlpFlags
impl RefUnwindSafe for BlpFlags
impl Send for BlpFlags
impl Sync for BlpFlags
impl Unpin for BlpFlags
impl UnwindSafe for BlpFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.