Enum glenum::BlendMode [] [src]

pub enum BlendMode {
    Zero,
    One,
    SrcColor,
    OneMinusSrcColor,
    SrcAlpha,
    OneMinusSrcAlpha,
    DstAlpha,
    OneMinusDstAlpha,
    DstColor,
    OneMinusDstColor,
    SrcAlphaSaturate,
    ConstantColor,
    OneMinusConstantColor,
    ConstantAlpha,
    OneMinusConstantAlpha,
}

Constants passed to WebGLRenderingContext.blendFunc() or WebGLRenderingContext.blendFuncSeparate() to specify the blending mode (for both, RBG and alpha, or separately).

Variants

Passed to blendFunc or blendFuncSeparate to turn off a component.

Passed to blendFunc or blendFuncSeparate to turn on a component.

Passed to blendFunc or blendFuncSeparate to multiply a component by the source elements color.

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source elements color.

Passed to blendFunc or blendFuncSeparate to multiply a component by the source's alpha.

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the source's alpha.

Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's alpha.

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's alpha.

Passed to blendFunc or blendFuncSeparate to multiply a component by the destination's color.

Passed to blendFunc or blendFuncSeparate to multiply a component by one minus the destination's color.

Passed to blendFunc or blendFuncSeparate to multiply a component by the minimum of source's alpha or one minus the destination's alpha.

Passed to blendFunc or blendFuncSeparate to specify a constant color blend function.

Passed to blendFunc or blendFuncSeparate to specify one minus a constant color blend function.

Passed to blendFunc or blendFuncSeparate to specify a constant alpha blend function.

Passed to blendFunc or blendFuncSeparate to specify one minus a constant alpha blend function.

Trait Implementations

impl Debug for BlendMode
[src]

[src]

Formats the value using the given formatter.

impl Clone for BlendMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for BlendMode
[src]