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

Types

opaque type ctor

Value members

Concrete methods

def Add(): BlendMode

Add source to dest.

Add source to dest.

Attributes

def Alpha(): BlendMode

Blend source and dest according to dest alpha.

Blend source and dest according to dest alpha.

Attributes

def Max(): BlendMode

Take maximum between source and dest.

Take maximum between source and dest.

Attributes

def Min(): BlendMode

Take minimum between source and dest.

Take minimum between source and dest.

Attributes

Multiply source and dest.

Multiply source and dest.

Attributes

def None(): BlendMode

Overwrite dest with source.

Overwrite dest with source.

Attributes

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(colorSourceFactor: Factor, colorDestinationFactor: Factor, colorBlendEquation: Equation, alphaSourceFactor: Factor, alphaDestinationFactor: Factor, alphaBlendEquation: 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