[−][src]Enum fna3d::Blend
BlendState
component, which specifies blend mode
Variants
Each component of the color is multiplied by {1, 1, 1, 1}.
Each component of the color is multiplied by {0, 0, 0, 0}.
Each component of the color is multiplied by the source color. {Rs, Gs, Bs, As}, where Rs, Gs, Bs, As are color source values.
Each component of the color is multiplied by the inverse of the source color. {1 - Rs, 1 - Gs, 1 - Bs, 1 - As}, where Rs, Gs, Bs, As are color source values.
Each component of the color is multiplied by the alpha value of the source. {As, As, As, As}, where As is the source alpha value.
Each component of the color is multiplied by the inverse of the alpha value of the source. {1 - As, 1 - As, 1 - As, 1 - As}, where As is the source alpha value.
Each component color is multiplied by the destination color. {Rd, Gd, Bd, Ad}, where Rd, Gd, Bd, Ad are color destination values.
Each component of the color is multiplied by the inversed destination color. {1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad}, where Rd, Gd, Bd, Ad are color destination values.
Each component of the color is multiplied by the alpha value of the destination. {Ad, Ad, Ad, Ad}, where Ad is the destination alpha value.
Each component of the color is multiplied by the inversed alpha value of the destination. {1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad}, where Ad is the destination alpha value.
Each component of the color is multiplied by a constant in the
Each component of the color is multiplied by a inversed constant in the
Each component of the color is multiplied by either the alpha of the source color, or the inverse of the alpha of the source color, whichever is greater. {f, f, f, 1}, where f = min(As, 1 - As), where As is the source alpha value.
Trait Implementations
impl Clone for Blend
[src]
impl Copy for Blend
[src]
impl Debug for Blend
[src]
impl Eq for Blend
[src]
impl FromPrimitive for Blend
[src]
pub fn from_u64(val: u64) -> Option<Self>
[src]
pub fn from_i64(val: i64) -> Option<Self>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl Hash for Blend
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Blend> for Blend
[src]
pub fn eq(&self, other: &Blend) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Blend
[src]
impl StructuralPartialEq for Blend
[src]
impl ToPrimitive for Blend
[src]
pub fn to_u64(&self) -> Option<u64>
[src]
pub fn to_i64(&self) -> Option<i64>
[src]
pub fn to_isize(&self) -> Option<isize>
[src]
pub fn to_i8(&self) -> Option<i8>
[src]
pub fn to_i16(&self) -> Option<i16>
[src]
pub fn to_i32(&self) -> Option<i32>
[src]
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_usize(&self) -> Option<usize>
[src]
pub fn to_u8(&self) -> Option<u8>
[src]
pub fn to_u16(&self) -> Option<u16>
[src]
pub fn to_u32(&self) -> Option<u32>
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
pub fn to_f32(&self) -> Option<f32>
[src]
pub fn to_f64(&self) -> Option<f64>
[src]
impl TryFrom<i16> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: i16) -> Result<Self, Self::Error>
[src]
impl TryFrom<i32> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: i32) -> Result<Self, Self::Error>
[src]
impl TryFrom<i64> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: i64) -> Result<Self, Self::Error>
[src]
impl TryFrom<i8> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: i8) -> Result<Self, Self::Error>
[src]
impl TryFrom<u16> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: u16) -> Result<Self, Self::Error>
[src]
impl TryFrom<u32> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: u32) -> Result<Self, Self::Error>
[src]
impl TryFrom<u64> for Blend
[src]
type Error = &'static str
The type returned in the event of a conversion error.
pub fn try_from(value: u64) -> Result<Self, Self::Error>
[src]
impl TryFrom<u8> for Blend
[src]
Auto Trait Implementations
impl RefUnwindSafe for Blend
impl Send for Blend
impl Sync for Blend
impl Unpin for Blend
impl UnwindSafe for Blend
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,