BlendMode

Blending modes for drawing.

Constructors

this
this(Factor sourceFactor, Factor destinationFactor, Equation blendEquation = Equation.Add)

Construct the blend mode given the factors and equation.

this
this(Factor colorSourceFactor, Factor colorDestinationFactor, Equation colorBlendEquation, Factor alphaSourceFactor, Factor alphaDestinationFactor, Equation alphaBlendEquation)

Construct the blend mode given the factors and equation.

Members

Enums

Equation
enum Equation

Enumeration of the blending equations

Factor
enum Factor

Enumeration of the blending factors.

Manifest constants

Add
enum Add;

Add source to dest.

Alpha
enum Alpha;

Blend source and dest according to dest alpha.

Multiply
enum Multiply;

Multiply source and dest.

None
enum None;

Overwrite dest with source.

Variables

alphaDstFactor
Factor alphaDstFactor;

Destination blending factor for the alpha channel.

alphaEquation
Equation alphaEquation;

Blending equation for the alpha channel.

alphaSrcFactor
Factor alphaSrcFactor;

Source blending factor for the alpha channel.

colorDstFactor
Factor colorDstFactor;

Destination blending factor for the color channels.

colorEquation
Equation colorEquation;

Blending equation for the color channels.

colorSrcFactor
Factor colorSrcFactor;

Source blending factor for the color channels.

Meta