30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
211 #ifndef DOXYGEN_SHOULD_SKIP_THIS
228 #ifndef DOXYGEN_SHOULD_SKIP_THIS
245 #ifndef DOXYGEN_SHOULD_SKIP_THIS
259 #ifndef DOXYGEN_SHOULD_SKIP_THIS
282 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Pixel = Dst * DstFactor - Src * SrcFactor.
BlendEquation alphaEquation
Blending equation for the alpha channel.
Definition: Blend.h:198
(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)
(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)
BlendFactor colorSrcFactor
Source blending factor for the color channels.
Definition: Blend.h:193
constexpr BlendMode BlendAlpha
Alpha blend mode.
Definition: Blend.h:217
constexpr BlendMode BlendNone
No blend mode.
Definition: Blend.h:262
Pixel = Src * SrcFactor - Dst * DstFactor.
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
BlendFactor colorDstFactor
Destination blending factor for the color channels.
Definition: Blend.h:194
BlendFactor alphaDstFactor
Destination blending factor for the alpha channel.
Definition: Blend.h:197
BlendEquation colorEquation
Blending equation for the color channels.
Definition: Blend.h:195
(dst.r, dst.g, dst.b, dst.a)
constexpr BlendMode(BlendFactor colorSourceFactor, BlendFactor colorDestinationFactor, BlendEquation colorBlendEquation, BlendFactor alphaSourceFactor, BlendFactor alphaDestinationFactor, BlendEquation alphaBlendEquation)
Construct the blend mode given the factors and equation.
Definition: Blend.h:181
BlendFactor alphaSrcFactor
Source blending factor for the alpha channel.
Definition: Blend.h:196
constexpr BlendMode BlendMultiply
Multiplicative blend mode.
Definition: Blend.h:248
Pixel = Src * SrcFactor + Dst * DstFactor.
Blending modes for drawing.
Definition: Blend.h:132
(src.a, src.a, src.a, src.a)
constexpr BlendMode BlendAdd
Additive blend mode.
Definition: Blend.h:234
(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)
constexpr BlendMode()
Default constructor.
Definition: Blend.h:139
constexpr bool operator==(const BlendMode &lhs, const BlendMode &rhs)
Equality operator.
Definition: Blend.h:273
BlendFactor
Enumeration of the blending factors.
Definition: Blend.h:60
(src.r, src.g, src.b, src.a)
BlendEquation
Enumeration of the blending equations.
Definition: Blend.h:44
constexpr BlendMode(BlendFactor sourceFactor, BlendFactor destinationFactor, BlendEquation equation=BlendEquation::Add)
Construct the blend mode given the factors and equation.
Definition: Blend.h:160
(dst.a, dst.a, dst.a, dst.a)
#define GF_API
Definition: Portability.h:35