Enum sdl2_sys::SDL_BlendFactor
source · #[repr(u32)]pub enum SDL_BlendFactor {
SDL_BLENDFACTOR_ZERO = 1,
SDL_BLENDFACTOR_ONE = 2,
SDL_BLENDFACTOR_SRC_COLOR = 3,
SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = 4,
SDL_BLENDFACTOR_SRC_ALPHA = 5,
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = 6,
SDL_BLENDFACTOR_DST_COLOR = 7,
SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = 8,
SDL_BLENDFACTOR_DST_ALPHA = 9,
SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = 10,
}
Expand description
\brief The normalized factor used to multiply pixel components
Variants§
SDL_BLENDFACTOR_ZERO = 1
< 0, 0, 0, 0
SDL_BLENDFACTOR_ONE = 2
< 1, 1, 1, 1
SDL_BLENDFACTOR_SRC_COLOR = 3
< srcR, srcG, srcB, srcA
SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR = 4
< 1-srcR, 1-srcG, 1-srcB, 1-srcA
SDL_BLENDFACTOR_SRC_ALPHA = 5
< srcA, srcA, srcA, srcA
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA = 6
< 1-srcA, 1-srcA, 1-srcA, 1-srcA
SDL_BLENDFACTOR_DST_COLOR = 7
< dstR, dstG, dstB, dstA
SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR = 8
< 1-dstR, 1-dstG, 1-dstB, 1-dstA
SDL_BLENDFACTOR_DST_ALPHA = 9
< dstA, dstA, dstA, dstA
SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA = 10
< 1-dstA, 1-dstA, 1-dstA, 1-dstA
Trait Implementations§
source§impl Clone for SDL_BlendFactor
impl Clone for SDL_BlendFactor
source§fn clone(&self) -> SDL_BlendFactor
fn clone(&self) -> SDL_BlendFactor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for SDL_BlendFactor
impl Hash for SDL_BlendFactor
source§impl PartialEq for SDL_BlendFactor
impl PartialEq for SDL_BlendFactor
source§fn eq(&self, other: &SDL_BlendFactor) -> bool
fn eq(&self, other: &SDL_BlendFactor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_BlendFactor
impl Eq for SDL_BlendFactor
impl StructuralPartialEq for SDL_BlendFactor
Auto Trait Implementations§
impl Freeze for SDL_BlendFactor
impl RefUnwindSafe for SDL_BlendFactor
impl Send for SDL_BlendFactor
impl Sync for SDL_BlendFactor
impl Unpin for SDL_BlendFactor
impl UnwindSafe for SDL_BlendFactor
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