110 Factor colorDestinationFactor,
113 Factor alphaDestinationFactor,
#define SFML_GRAPHICS_API
Definition Export.hpp:42
Definition BlendMode.hpp:34
SFML_GRAPHICS_API const BlendMode BlendAdd
Add source to dest.
SFML_GRAPHICS_API const BlendMode BlendAlpha
Blend source and dest according to dest alpha.
SFML_GRAPHICS_API const BlendMode BlendNone
Overwrite dest with source.
@ Zero
If the stencil test passes, the value in the stencil buffer is set to zero.
Definition StencilMode.hpp:63
SFML_GRAPHICS_API const BlendMode BlendMin
Take minimum between source and dest.
SFML_GRAPHICS_API const BlendMode BlendMultiply
Multiply source and dest.
SFML_GRAPHICS_API const BlendMode BlendMax
Take maximum between source and dest.
SFML_GRAPHICS_API bool operator!=(const BlendMode &left, const BlendMode &right)
Overload of the != operator.
Factor colorSrcFactor
Source blending factor for the color channels.
Definition BlendMode.hpp:119
BlendMode()=default
Default constructor.
Equation alphaEquation
Blending equation for the alpha channel.
Definition BlendMode.hpp:124
BlendMode(Factor colorSourceFactor, Factor colorDestinationFactor, Equation colorBlendEquation, Factor alphaSourceFactor, Factor alphaDestinationFactor, Equation alphaBlendEquation)
Construct the blend mode given the factors and equation.
BlendMode(Factor sourceFactor, Factor destinationFactor, Equation blendEquation=Equation::Add)
Construct the blend mode given the factors and equation.
Equation
Enumeration of the blending equations.
Definition BlendMode.hpp:69
@ Add
Pixel = Src * SrcFactor + Dst * DstFactor.
Definition BlendMode.hpp:70
Factor alphaSrcFactor
Source blending factor for the alpha channel.
Definition BlendMode.hpp:122
Factor alphaDstFactor
Destination blending factor for the alpha channel.
Definition BlendMode.hpp:123
Factor colorDstFactor
Destination blending factor for the color channels.
Definition BlendMode.hpp:120
SFML_GRAPHICS_API bool operator==(const BlendMode &left, const BlendMode &right)
Overload of the == operator.
Equation colorEquation
Blending equation for the color channels.
Definition BlendMode.hpp:121
Factor
Enumeration of the blending factors.
Definition BlendMode.hpp:49
@ One
(1, 1, 1, 1)
Definition BlendMode.hpp:51
@ OneMinusSrcAlpha
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
Definition BlendMode.hpp:57
@ SrcAlpha
(src.a, src.a, src.a, src.a)
Definition BlendMode.hpp:56