[−][src]Enum mallumo_gls::raw::LinearBlendingFactor
Indicates which value to multiply each component with.
Variants
Zero
Multiply the source or destination component by zero, which always
gives 0.0
.
One
Multiply the source or destination component by one, which always gives you the original value.
SourceColor
Multiply the source or destination component by its corresponding value in the source.
If you apply this to the source components, you get the values squared.
OneMinusSourceColor
Equivalent to 1 - SourceColor
.
DestinationColor
Multiply the source or destination component by its corresponding value in the destination.
If you apply this to the destination components, you get the values squared.
OneMinusDestinationColor
Equivalent to 1 - DestinationColor
.
SourceAlpha
Multiply the source or destination component by the alpha value of the source.
SourceAlphaSaturate
Multiply the source or destination component by the smallest value of
SourceAlpha
and 1 - DestinationAlpha
.
OneMinusSourceAlpha
Multiply the source or destination component by 1.0
minus the alpha value of the source.
DestinationAlpha
Multiply the source or destination component by the alpha value of the destination.
OneMinusDestinationAlpha
Multiply the source or destination component by 1.0
minus the alpha value of the
destination.
ConstantColor
Multiply the source or destination component by the corresponding value
in Blend::const_value
.
OneMinusConstantColor
Multiply the source or destination compoent by 1.0
minus the corresponding
value in Blend::const_value
.
ConstantAlpha
Multiply the source or destination component by the alpha value of Blend::const_value
.
OneMinusConstantAlpha
Multiply the source or destination componet by 1.0
minus the alpha value of
Blend::const_value
.
Trait Implementations
impl Eq for LinearBlendingFactor
[src]
impl Copy for LinearBlendingFactor
[src]
impl PartialEq<LinearBlendingFactor> for LinearBlendingFactor
[src]
fn eq(&self, other: &LinearBlendingFactor) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for LinearBlendingFactor
[src]
fn clone(&self) -> LinearBlendingFactor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for LinearBlendingFactor
[src]
Auto Trait Implementations
impl Send for LinearBlendingFactor
impl Sync for LinearBlendingFactor
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,