A set of blend modes used in drawing operations.
The normalized factor used to multiply pixel components.
The blend operation used when combining source and destination pixel components.
Compose a custom blend mode for renderers.
additive blending: dstRGB = (srcRGB * srcA) + dstRGB, dstA = dstA
pre-multiplied additive blending: dstRGB = srcRGB + dstRGB, dstA = dstA
alpha blending: dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)), dstA = srcA + (dstA * (1-srcA))
pre-multiplied alpha blending: dstRGBA = srcRGBA + (dstRGBA * (1-srcA))
color modulate: dstRGB = srcRGB * dstRGB, dstA = dstA
color multiply: dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA)), dstA = dstA
no blending: dstRGBA = srcRGBA
SDL Blending Modes