#[repr(C)]pub enum BlendMode {
Alpha = 0,
Additive = 1,
Multiplied = 2,
AddColors = 3,
SubtractColors = 4,
AlphaPremultiply = 5,
Custom = 6,
CustomSeparate = 7,
}
Expand description
Color blending modes (pre-defined)
Variants§
Alpha = 0
Blend textures considering alpha (default)
Additive = 1
Blend textures adding colors
Multiplied = 2
Blend textures multiplying colors
AddColors = 3
Blend textures adding colors (alternative)
SubtractColors = 4
Blend textures subtracting colors (alternative)
AlphaPremultiply = 5
Blend premultiplied textures considering alpha
Custom = 6
Blend textures using custom src/dst factors (use rlSetBlendFactors())
CustomSeparate = 7
Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
Trait Implementations§
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more