Struct cat_engine_basement::graphics::core::blending::Blending[][src]

pub struct Blending { /* fields omitted */ }
Expand description

A wrapper for blending functions.

Blending is disabled by default.

The default blending constant colour is [0f32;4].

The default blending functions for Source are BlendingFunction::One.

The default blending functions for Destination are BlendingFunction::Zero.

The default blending equations are BlendingEquation::Addition.

Implementations

Enables blending.

Disables blending.

Checks whether blending is enabled.

Sets the blending constant colour.

Returns the blending constant colour.

Writes the blending constant colour to colour.

Sets the blending functions.

Sets the blending functions for the RBG and Alpha colour components separately.

Returns the source blending function for the RBG colour components.

Writes the source blending function for the RBG colour components to function.

Returns the source blending function for the Alpha colour component.

Writes the souse blending function for the Alpha colour component to the function.

Returns the destination blending function for the RBG colour components.

Writes the destination blending function for the RBG colour components to function.

Returns the destination blending function for the Alpha colour component.

Writes the blending function for the Alpha colour component to function.

Sets the equation used for both the RGB blending equation and the Alpha blend equation.

Sets the equation for the RGB blending equation and the Alpha blend equation sepatately.

Returns the RGB blending equation.

Writes the RGB blending equation to equation.

Returns the Alpha blending equation.

Writes the Alpha blending equation to equation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.