#[non_exhaustive]pub enum BlendMode {
None,
AlphaBlend,
Add,
Mul,
}
Expand description
A mode for blending colors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Not blend, overwrites a color by the another one.
AlphaBlend
Blending colors by their alpha values.
Add
Blending colors by addition.
Mul
Blending colors by multiplication.
Trait Implementations§
Source§impl From<BlendMode> for SDL_BlendMode
impl From<BlendMode> for SDL_BlendMode
Source§impl From<u32> for BlendMode
impl From<u32> for BlendMode
Source§fn from(raw: SDL_BlendMode) -> Self
fn from(raw: SDL_BlendMode) -> Self
Converts to this type from the input type.
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