Struct three_d::BlendParameters[][src]

pub struct BlendParameters {
    pub source_rgb_multiplier: BlendMultiplierType,
    pub source_alpha_multiplier: BlendMultiplierType,
    pub destination_rgb_multiplier: BlendMultiplierType,
    pub destination_alpha_multiplier: BlendMultiplierType,
    pub rgb_equation: BlendEquationType,
    pub alpha_equation: BlendEquationType,
}

Defines which type of blending to use for a render call. Blending allows combining each color channel of a render call with the color already in the color channels of the render target. This is usually used to simulate transparency.

Fields

source_rgb_multiplier: BlendMultiplierTypesource_alpha_multiplier: BlendMultiplierTypedestination_rgb_multiplier: BlendMultiplierTypedestination_alpha_multiplier: BlendMultiplierTypergb_equation: BlendEquationTypealpha_equation: BlendEquationType

Implementations

impl BlendParameters[src]

pub const TRANSPARENCY: Self[src]

Usual transparency blending parameters.

pub const ADD: Self[src]

Adds the color of the render target with the output color of the render call.

Trait Implementations

impl Clone for BlendParameters[src]

impl Copy for BlendParameters[src]

impl Debug for BlendParameters[src]

impl Default for BlendParameters[src]

impl PartialEq<BlendParameters> for BlendParameters[src]

impl StructuralPartialEq for BlendParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.