Enum sdl2_sys::SDL_BlendMode [−][src]
#[repr(u32)]
pub enum SDL_BlendMode {
SDL_BLENDMODE_NONE,
SDL_BLENDMODE_BLEND,
SDL_BLENDMODE_ADD,
SDL_BLENDMODE_MOD,
SDL_BLENDMODE_MUL,
SDL_BLENDMODE_INVALID,
}
Expand description
\brief The blend mode used in SDL_RenderCopy() and drawing operations.
Variants
< no blending dstRGBA = srcRGBA
< alpha blending dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) dstA = srcA + (dstA * (1-srcA))
< additive blending dstRGB = (srcRGB * srcA) + dstRGB dstA = dstA
< color modulate dstRGB = srcRGB * dstRGB dstA = dstA
< color multiply dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA)) dstA = (srcA * dstA) + (dstA * (1-srcA))