SFML-2.3.2.2: SFML bindings

Safe HaskellSafe-Inferred
LanguageHaskell98

SFML.Graphics.BlendMode

Synopsis

Documentation

data BlendFactor Source

Enumeration of the blending factors

Constructors

BlendFactorZero

(0, 0, 0, 0)

BlendFactorOne

(1, 1, 1, 1)

BlendFactorSrcColor

(src.r, src.g, src.b, src.a)

BlendFactorOneMinusSrcColor

(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)

BlendFactorDstColor

(dst.r, dst.g, dst.b, dst.a)

BlendFactorOneMinusDstColor

(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)

BlendFactorSrcAlpha

(src.a, src.a, src.a, src.a)

BlendFactorOneMinusSrcAlpha

(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)

BlendFactorDstAlpha

(dst.a, dst.a, dst.a, dst.a)

BlendFactorOneMinusDstAlpha

(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)

data BlendEquation Source

Enumeration of the blending equations

Constructors

BlendEquationAdd

Pixel = Src * SrcFactor + Dst * DstFactor

BlendEquationSubtract

Pixel = Src * SrcFactor - Dst * DstFactor

data BlendMode Source

Available blending modes for drawing.

Constructors

BlendMode 

Fields

colorSrcFactor :: BlendFactor

Source blending factor for the color channels

colorDstFactor :: BlendFactor

Destination blending factor for the color channels

colorEquation :: BlendEquation

Blending equation for the color channels

alphaSrcFactor :: BlendFactor

Source blending factor for the alpha channel

alphaDstFactor :: BlendFactor

Destination blending factor for the alpha channel

alphaEquation :: BlendEquation

Blending equation for the alpha channel