Enum glium::draw_parameters::LinearBlendingFactor
[−]
[src]
pub enum LinearBlendingFactor {
Zero,
One,
SourceColor,
OneMinusSourceColor,
DestinationColor,
OneMinusDestinationColor,
SourceAlpha,
SourceAlphaSaturate,
OneMinusSourceAlpha,
DestinationAlpha,
OneMinusDestinationAlpha,
ConstantColor,
OneMinusConstantColor,
ConstantAlpha,
OneMinusConstantAlpha,
}Indicates which value to multiply each component with.
Variants
ZeroMultiply the source or destination component by zero, which always
gives 0.0.
OneMultiply the source or destination component by one, which always gives you the original value.
SourceColorMultiply 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.
OneMinusSourceColorEquivalent to 1 - SourceColor.
DestinationColorMultiply 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.
OneMinusDestinationColorEquivalent to 1 - DestinationColor.
SourceAlphaMultiply the source or destination component by the alpha value of the source.
SourceAlphaSaturateMultiply the source or destination component by the smallest value of
SourceAlpha and 1 - DestinationAlpha.
OneMinusSourceAlphaMultiply the source or destination component by 1.0 minus the alpha value of the source.
DestinationAlphaMultiply the source or destination component by the alpha value of the destination.
OneMinusDestinationAlphaMultiply the source or destination component by 1.0 minus the alpha value of the
destination.
ConstantColorMultiply the source or destination component by the corresponding value
in Blend::const_value.
OneMinusConstantColorMultiply the source or destination compoent by 1.0 minus the corresponding
value in Blend::const_value.
ConstantAlphaMultiply the source or destination component by the alpha value of Blend::const_value.
OneMinusConstantAlphaMultiply the source or destination componet by 1.0 minus the alpha value of
Blend::const_value.
Trait Implementations
impl Eq for LinearBlendingFactor[src]
impl PartialEq for LinearBlendingFactor[src]
fn eq(&self, __arg_0: &LinearBlendingFactor) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Debug for LinearBlendingFactor[src]
impl Copy for LinearBlendingFactor[src]
impl Clone for LinearBlendingFactor[src]
fn clone(&self) -> LinearBlendingFactor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more