Function fermium::blendmode::SDL_ComposeCustomBlendMode
source · 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 factordstColorFactor
: destination color factorcolorOperation
: color operationsrcAlphaFactor
: source alpha factordstAlphaFactor
: destination alpha factoralphaOperation
: alpha operation
The result of the blend mode operation will be:
dstRGB = dstRGB * dstColorFactor colorOperation srcRGB * srcColorFactor
and
dstA = dstA * dstAlphaFactor alphaOperation srcA * srcAlphaFactor