25 #ifndef SFML_BLENDMODE_HPP
26 #define SFML_BLENDMODE_HPP
31 #include <SFML/Graphics/Export.hpp>
94 BlendMode(Factor sourceFactor, Factor destinationFactor, Equation blendEquation = Add);
107 BlendMode(Factor colorSourceFactor, Factor colorDestinationFactor,
108 Equation colorBlendEquation, Factor alphaSourceFactor,
109 Factor alphaDestinationFactor, Equation alphaBlendEquation);
149 SFML_GRAPHICS_API
extern const BlendMode BlendAlpha;
150 SFML_GRAPHICS_API
extern const BlendMode BlendAdd;
151 SFML_GRAPHICS_API
extern const BlendMode BlendMultiply;
152 SFML_GRAPHICS_API
extern const BlendMode BlendNone;
157 #endif // SFML_BLENDMODE_HPP
(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)
Factor colorSrcFactor
Source blending factor for the color channels.
(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)
(dst.r, dst.g, dst.b, dst.a)
Blending modes for drawing.
Factor
Enumeration of the blending factors.
Equation alphaEquation
Blending equation for the alpha channel.
Pixel = Src * SrcFactor + Dst * DstFactor.
(src.a, src.a, src.a, src.a)
Factor alphaDstFactor
Destination blending factor for the alpha channel.
Equation colorEquation
Blending equation for the color channels.
(dst.a, dst.a, dst.a, dst.a)
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
(src.r, src.g, src.b, src.a)
Equation
Enumeration of the blending equations.
Factor alphaSrcFactor
Source blending factor for the alpha channel.
Factor colorDstFactor
Destination blending factor for the color channels.