Struct nannou::ui::backend::glium::glium::Blend [] [src]

pub struct Blend {
    pub color: BlendingFunction,
    pub alpha: BlendingFunction,
    pub constant_value: (f32, f32, f32, f32),
}

Blend effect that the GPU will use for blending.

Blending happens at the end of the rendering process, when the GPU wants to write the pixels over pixels that already exist in the framebuffer. The blending function allows you to choose how it should merge the two.

If you want to add transparent objects one over another, use Blend::alpha_blending().

Fields

The blending function for color channels.

The blending function for alpha channels.

A constant color that can be used in the blending functions.

Methods

impl Blend
[src]

[src]

Returns a blend effect to add transparent objects over others.

Trait Implementations

impl Copy for Blend
[src]

impl Clone for Blend
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Blend> for Blend
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Blend
[src]

[src]

Formats the value using the given formatter.

impl Default for Blend
[src]

[src]

Returns the "default value" for a type. Read more