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