BlendMode#
Enums
-
enum sfBlendFactor#
Enumeration of the blending factors.
Values:
-
enumerator sfBlendFactorZero#
(0, 0, 0, 0)
-
enumerator sfBlendFactorOne#
(1, 1, 1, 1)
-
enumerator sfBlendFactorSrcColor#
(src.r, src.g, src.b, src.a)
-
enumerator sfBlendFactorOneMinusSrcColor#
(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)
-
enumerator sfBlendFactorDstColor#
(dst.r, dst.g, dst.b, dst.a)
-
enumerator sfBlendFactorOneMinusDstColor#
(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)
-
enumerator sfBlendFactorSrcAlpha#
(src.a, src.a, src.a, src.a)
-
enumerator sfBlendFactorOneMinusSrcAlpha#
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
-
enumerator sfBlendFactorDstAlpha#
(dst.a, dst.a, dst.a, dst.a)
-
enumerator sfBlendFactorOneMinusDstAlpha#
(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)
-
enumerator sfBlendFactorZero#
-
enum sfBlendEquation#
Enumeration of the blending equations.
Values:
-
enumerator sfBlendEquationAdd#
Pixel = Src * SrcFactor + Dst * DstFactor.
-
enumerator sfBlendEquationSubtract#
Pixel = Src * SrcFactor - Dst * DstFactor.
-
enumerator sfBlendEquationReverseSubtract#
Pixel = Dst * DstFactor - Src * SrcFactor.
-
enumerator sfBlendEquationAdd#
Variables
-
const sfBlendMode sfBlendAlpha#
Blend source and dest according to dest alpha.
-
const sfBlendMode sfBlendAdd#
Add source to dest.
-
const sfBlendMode sfBlendMultiply#
Multiply source and dest.
-
const sfBlendMode sfBlendNone#
Overwrite dest with source.
-
struct sfBlendMode#
- #include <BlendMode.h>
Blending mode for drawing.
Public Members
-
sfBlendFactor colorSrcFactor#
Source blending factor for the color channels.
-
sfBlendFactor colorDstFactor#
Destination blending factor for the color channels.
-
sfBlendEquation colorEquation#
Blending equation for the color channels.
-
sfBlendFactor alphaSrcFactor#
Source blending factor for the alpha channel.
-
sfBlendFactor alphaDstFactor#
Destination blending factor for the alpha channel.
-
sfBlendEquation alphaEquation#
Blending equation for the alpha channel.
-
sfBlendFactor colorSrcFactor#