pub enum AlphaType {
None = 0,
OneBit = 1,
Enhanced = 7,
EightBit = 8,
}Expand description
Alpha channel encoding type for BLP2 format Based on empirical analysis of WoW versions 1.12.1 through 5.4.8
Variants§
None = 0
No alpha channel
OneBit = 1
1-bit alpha (binary transparency)
Enhanced = 7
Enhanced alpha blending (introduced in TBC 2.4.3)
EightBit = 8
8-bit alpha channel
Implementations§
Source§impl AlphaType
impl AlphaType
Sourcepub fn is_supported_in_version(self, wow_version: WowVersion) -> bool
pub fn is_supported_in_version(self, wow_version: WowVersion) -> bool
Returns true if this alpha type was available in the specified WoW version
Sourcepub fn alpha_bits(self) -> u8
pub fn alpha_bits(self) -> u8
Get the effective alpha bits for this alpha type
Trait Implementations§
impl Copy for AlphaType
impl Eq for AlphaType
Source§impl Ord for AlphaType
impl Ord for AlphaType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AlphaType
impl PartialOrd for AlphaType
impl StructuralPartialEq for AlphaType
Auto Trait Implementations§
impl Freeze for AlphaType
impl RefUnwindSafe for AlphaType
impl Send for AlphaType
impl Sync for AlphaType
impl Unpin for AlphaType
impl UnsafeUnpin for AlphaType
impl UnwindSafe for AlphaType
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 more