ctor

sfml.graphics.BlendMode.ctor
object ctor

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Members list

Value members

Concrete methods

def apply(): ctor

Default constructor.

Default constructor.

Constructs a blending mode that does alpha blending.

Attributes

def apply(sourceFactor: Factor, destinationFactor: Factor, blendEquation: Equation): ctor

Construct the blend mode given the factors and equation.

Construct the blend mode given the factors and equation.

This constructor uses the same factors and equation for both color and alpha components. It also defaults to the Add equation.

Value parameters

blendEquation

Specifies how to combine the source and destination colors and alpha.

destinationFactor

Specifies how to compute the destination factor for the color and alpha channels.

sourceFactor

Specifies how to compute the source factor for the color and alpha channels.

Attributes

def apply(colorSrcFactor: Factor, colorDstFactor: Factor, colorEquation: Equation, alphaSrcFactor: Factor, alphaDstFactor: Factor, alphaEquation: Equation): ctor

Construct the blend mode given the factors and equation.

Construct the blend mode given the factors and equation.

Value parameters

alphaBlendEquation

Specifies how to combine the source and destination alphas.

alphaDestinationFactor

Specifies how to compute the destination factor.

alphaSourceFactor

Specifies how to compute the source factor.

colorBlendEquation

Specifies how to combine the source and destination colors.

colorDestinationFactor

Specifies how to compute the destination factor for the color channels.

colorSourceFactor

Specifies how to compute the source factor for the color channels.

Attributes