[][src]Enum sdl2_sys::SDL_BlendOperation

#[repr(u32)]pub enum SDL_BlendOperation {
    SDL_BLENDOPERATION_ADD,
    SDL_BLENDOPERATION_SUBTRACT,
    SDL_BLENDOPERATION_REV_SUBTRACT,
    SDL_BLENDOPERATION_MINIMUM,
    SDL_BLENDOPERATION_MAXIMUM,
}

\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

impl Clone for SDL_BlendOperation[src]

impl Copy for SDL_BlendOperation[src]

impl Debug for SDL_BlendOperation[src]

impl Eq for SDL_BlendOperation[src]

impl Hash for SDL_BlendOperation[src]

impl PartialEq<SDL_BlendOperation> for SDL_BlendOperation[src]

impl StructuralEq for SDL_BlendOperation[src]

impl StructuralPartialEq for SDL_BlendOperation[src]

Auto Trait Implementations

impl Send for SDL_BlendOperation

impl Sync for SDL_BlendOperation

impl Unpin for SDL_BlendOperation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.