add BlendFunction::MultipliedBlend
This commit is contained in:
parent
173aaa2579
commit
380bff59eb
|
@ -23,6 +23,7 @@ pub enum BlendFunction {
|
|||
Blend,
|
||||
BlendSourceWithAlpha(u8),
|
||||
TintedBlend(u32),
|
||||
MultipliedBlend(u32),
|
||||
}
|
||||
|
||||
impl BlendFunction {
|
||||
|
@ -45,6 +46,10 @@ impl BlendFunction {
|
|||
let tinted = tint_argb32(src, *tint);
|
||||
blend_argb32(tinted, dest)
|
||||
}
|
||||
MultipliedBlend(color) => {
|
||||
let multiplied = multiply_argb32(src, *color);
|
||||
blend_argb32(multiplied, dest)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue