pub unsafe extern "C" fn SDL_ComposeCustomBlendMode(
    srcColorFactor: SDL_BlendFactor,
    dstColorFactor: SDL_BlendFactor,
    colorOperation: SDL_BlendOperation,
    srcAlphaFactor: SDL_BlendFactor,
    dstAlphaFactor: SDL_BlendFactor,
    alphaOperation: SDL_BlendOperation
) -> SDL_BlendMode
Expand description

Create a custom blend mode, which may or may not be supported by a given renderer

  • srcColorFactor: source color factor
  • dstColorFactor: destination color factor
  • colorOperation: color operation
  • srcAlphaFactor: source alpha factor
  • dstAlphaFactor: destination alpha factor
  • alphaOperation: alpha operation

The result of the blend mode operation will be:

dstRGB = dstRGB * dstColorFactor colorOperation srcRGB * srcColorFactor

and

dstA = dstA * dstAlphaFactor alphaOperation srcA * srcAlphaFactor