Enum sdl2::render::BlendMode [−][src]
#[repr(i32)]
pub enum BlendMode {
None,
Blend,
Add,
Mod,
Mul,
Invalid,
}Expand description
Blend mode for Canvas, Texture or Surface.
Variants
no blending (replace destination with source).
Alpha blending
dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
dstA = srcA + (dstA * (1-srcA))
Additive blending
dstRGB = (srcRGB * srcA) + dstRGB
dstA = dstA (keep original alpha)
Color modulate
dstRGB = srcRGB * dstRGB
Color multiply
Invalid blending mode (indicates error)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations
Mutably borrows from an owned value. Read more