BlendMode

sfml.graphics.BlendMode
See theBlendMode companion trait
object BlendMode

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BlendMode.type

Members list

Type members

Classlikes

enum Equation

Enumeration of the blending equations.

Enumeration of the blending equations.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Factor

Enumeration of the blending factors.

Enumeration of the blending factors.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ctor

Attributes

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

Value members

Concrete methods

def Add(): BlendMode
def Alpha(): BlendMode
def None(): BlendMode
def apply(): BlendMode

Default constructor.

Default constructor.

Constructs a blending mode that does alpha blending.

Attributes

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

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): BlendMode

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