27 #include "GraphicsApi.h" 30 #ifndef DOXYGEN_SHOULD_SKIP_THIS 155 : colorSrcFactor(sourceFactor)
156 , colorDstFactor(destinationFactor)
157 , colorEquation(equation)
158 , alphaSrcFactor(sourceFactor)
159 , alphaDstFactor(destinationFactor)
160 , alphaEquation(equation)
177 : colorSrcFactor(colorSourceFactor)
178 , colorDstFactor(colorDestinationFactor)
179 , colorEquation(colorBlendEquation)
180 , alphaSrcFactor(alphaSourceFactor)
181 , alphaDstFactor(alphaDestinationFactor)
182 , alphaEquation(alphaBlendEquation)
205 #ifndef DOXYGEN_SHOULD_SKIP_THIS 222 #ifndef DOXYGEN_SHOULD_SKIP_THIS 239 #ifndef DOXYGEN_SHOULD_SKIP_THIS 253 #ifndef DOXYGEN_SHOULD_SKIP_THIS 276 #ifndef DOXYGEN_SHOULD_SKIP_THIS BlendEquation alphaEquation
Blending equation for the alpha channel.
Definition: Blend.h:192
Pixel = Dst * DstFactor - Src * SrcFactor.
constexpr BlendMode BlendAdd
Additive blend mode.
Definition: Blend.h:228
BlendFactor colorSrcFactor
Source blending factor for the color channels.
Definition: Blend.h:187
(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)
Pixel = Src * SrcFactor + Dst * DstFactor.
BlendFactor colorDstFactor
Destination blending factor for the color channels.
Definition: Blend.h:188
BlendFactor alphaDstFactor
Destination blending factor for the alpha channel.
Definition: Blend.h:191
BlendEquation colorEquation
Blending equation for the color channels.
Definition: Blend.h:189
(src.a, src.a, src.a, src.a)
(src.r, src.g, src.b, src.a)
constexpr BlendMode BlendMultiply
Multiplicative blend mode.
Definition: Blend.h:242
BlendEquation
Enumeration of the blending equations.
Definition: Blend.h:44
constexpr BlendMode BlendAlpha
Alpha blend mode.
Definition: Blend.h:211
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:175
constexpr BlendMode BlendNone
No blend mode.
Definition: Blend.h:256
The namespace for gf classes.
Definition: Action.h:35
BlendFactor alphaSrcFactor
Source blending factor for the alpha channel.
Definition: Blend.h:190
BlendFactor
Enumeration of the blending factors.
Definition: Blend.h:60
Pixel = Src * SrcFactor - Dst * DstFactor.
Blending modes for drawing.
Definition: Blend.h:126
(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)
constexpr BlendMode()
Default constructor.
Definition: Blend.h:133
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
constexpr bool operator==(const BlendMode &lhs, const BlendMode &rhs)
Equality operator.
Definition: Blend.h:267
constexpr BlendMode(BlendFactor sourceFactor, BlendFactor destinationFactor, BlendEquation equation=BlendEquation::Add)
Construct the blend mode given the factors and equation.
Definition: Blend.h:154
(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)
(dst.a, dst.a, dst.a, dst.a)
(dst.r, dst.g, dst.b, dst.a)