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
constexpr ZeroType Zero
Constant to represent "zero".
Definition: Types.h:93
The namespace for gf classes.
constexpr BlendMode BlendAlpha
Alpha blend mode.
Definition: Blend.h:211
BlendEquation
Enumeration of the blending equations.
Definition: Blend.h:44
@ Substract
Pixel = Src * SrcFactor - Dst * DstFactor.
@ Add
Pixel = Src * SrcFactor + Dst * DstFactor.
@ ReverseSubstract
Pixel = Dst * DstFactor - Src * SrcFactor.
constexpr BlendMode BlendNone
No blend mode.
Definition: Blend.h:256
constexpr BlendMode BlendMultiply
Multiplicative blend mode.
Definition: Blend.h:242
constexpr BlendMode BlendAdd
Additive blend mode.
Definition: Blend.h:228
BlendFactor
Enumeration of the blending factors.
Definition: Blend.h:60
@ OneMinusSrcColor
(1, 1, 1, 1) - (src.r, src.g, src.b, src.a)
@ OneMinusDstColor
(1, 1, 1, 1) - (dst.r, dst.g, dst.b, dst.a)
@ SrcColor
(src.r, src.g, src.b, src.a)
@ OneMinusDstAlpha
(1, 1, 1, 1) - (dst.a, dst.a, dst.a, dst.a)
@ OneMinusSrcAlpha
(1, 1, 1, 1) - (src.a, src.a, src.a, src.a)
@ SrcAlpha
(src.a, src.a, src.a, src.a)
@ DstAlpha
(dst.a, dst.a, dst.a, dst.a)
@ DstColor
(dst.r, dst.g, dst.b, dst.a)
Blending modes for drawing.
Definition: Blend.h:126
BlendEquation alphaEquation
Blending equation for the alpha channel.
Definition: Blend.h:192
constexpr bool operator==(const BlendMode &lhs, const BlendMode &rhs)
Equality operator.
Definition: Blend.h:267
constexpr BlendMode()
Default constructor.
Definition: Blend.h:133
BlendFactor colorSrcFactor
Source blending factor for the color channels.
Definition: Blend.h:187
BlendFactor alphaSrcFactor
Source blending factor for the alpha channel.
Definition: Blend.h:190
BlendEquation colorEquation
Blending equation for the color channels.
Definition: Blend.h:189
constexpr BlendMode(BlendFactor sourceFactor, BlendFactor destinationFactor, BlendEquation equation=BlendEquation::Add)
Construct the blend mode given the factors and equation.
Definition: Blend.h:154
BlendFactor alphaDstFactor
Destination blending factor for the alpha channel.
Definition: Blend.h:191
BlendFactor colorDstFactor
Destination blending factor for the color channels.
Definition: Blend.h:188
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