Enum rust_raylib::ffi::BlendMode
source · #[repr(C)]pub enum BlendMode {
Alpha,
Additive,
Multiplied,
AddColors,
SubtractColors,
AlphaPremultiply,
Custom,
CustomSeparate,
}Expand description
Color blending modes (pre-defined)
Variants§
Alpha
Blend textures considering alpha (default)
Additive
Blend textures adding colors
Multiplied
Blend textures multiplying colors
AddColors
Blend textures adding colors (alternative)
SubtractColors
Blend textures subtracting colors (alternative)
AlphaPremultiply
Blend premultiplied textures considering alpha
Custom
Blend textures using custom src/dst factors (use rlSetBlendFactors())
CustomSeparate
Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
Trait Implementations§
source§impl PartialEq<BlendMode> for BlendMode
impl PartialEq<BlendMode> for BlendMode
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralEq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
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