Enum sdl2_sys::SDL_BlendMode[][src]

#[repr(u32)]
pub enum SDL_BlendMode {
    SDL_BLENDMODE_NONE,
    SDL_BLENDMODE_BLEND,
    SDL_BLENDMODE_ADD,
    SDL_BLENDMODE_MOD,
    SDL_BLENDMODE_MUL,
    SDL_BLENDMODE_INVALID,
}
Expand description

\brief The blend mode used in SDL_RenderCopy() and drawing operations.

Variants

SDL_BLENDMODE_NONE

< no blending dstRGBA = srcRGBA

SDL_BLENDMODE_BLEND

< alpha blending dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA)) dstA = srcA + (dstA * (1-srcA))

SDL_BLENDMODE_ADD

< additive blending dstRGB = (srcRGB * srcA) + dstRGB dstA = dstA

SDL_BLENDMODE_MOD

< color modulate dstRGB = srcRGB * dstRGB dstA = dstA

SDL_BLENDMODE_MUL

< color multiply dstRGB = (srcRGB * dstRGB) + (dstRGB * (1-srcA)) dstA = (srcA * dstA) + (dstA * (1-srcA))

SDL_BLENDMODE_INVALID

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.