Enum sdl2_sys::SDL_BlendOperation
source · [−]#[repr(u32)]
pub enum SDL_BlendOperation {
SDL_BLENDOPERATION_ADD,
SDL_BLENDOPERATION_SUBTRACT,
SDL_BLENDOPERATION_REV_SUBTRACT,
SDL_BLENDOPERATION_MINIMUM,
SDL_BLENDOPERATION_MAXIMUM,
}
Expand description
\brief The blend operation used when combining source and destination pixel components
Variants
SDL_BLENDOPERATION_ADD
< dst + src: supported by all renderers
SDL_BLENDOPERATION_SUBTRACT
< dst - src : supported by D3D9, D3D11, OpenGL, OpenGLES
SDL_BLENDOPERATION_REV_SUBTRACT
< src - dst : supported by D3D9, D3D11, OpenGL, OpenGLES
SDL_BLENDOPERATION_MINIMUM
< min(dst, src) : supported by D3D11
SDL_BLENDOPERATION_MAXIMUM
< max(dst, src) : supported by D3D11
Trait Implementations
sourceimpl Clone for SDL_BlendOperation
impl Clone for SDL_BlendOperation
sourcefn clone(&self) -> SDL_BlendOperation
fn clone(&self) -> SDL_BlendOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_BlendOperation
impl Debug for SDL_BlendOperation
sourceimpl Hash for SDL_BlendOperation
impl Hash for SDL_BlendOperation
impl Copy for SDL_BlendOperation
impl Eq for SDL_BlendOperation
impl StructuralEq for SDL_BlendOperation
impl StructuralPartialEq for SDL_BlendOperation
Auto Trait Implementations
impl RefUnwindSafe for SDL_BlendOperation
impl Send for SDL_BlendOperation
impl Sync for SDL_BlendOperation
impl Unpin for SDL_BlendOperation
impl UnwindSafe for SDL_BlendOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more