Enum sdl2_sys::SDL_BlendFactor[][src]

#[repr(u32)]
pub enum SDL_BlendFactor {
    SDL_BLENDFACTOR_ZERO,
    SDL_BLENDFACTOR_ONE,
    SDL_BLENDFACTOR_SRC_COLOR,
    SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR,
    SDL_BLENDFACTOR_SRC_ALPHA,
    SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
    SDL_BLENDFACTOR_DST_COLOR,
    SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR,
    SDL_BLENDFACTOR_DST_ALPHA,
    SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA,
}
Expand description

\brief The normalized factor used to multiply pixel components

Variants

SDL_BLENDFACTOR_ZERO

< 0, 0, 0, 0

SDL_BLENDFACTOR_ONE

< 1, 1, 1, 1

SDL_BLENDFACTOR_SRC_COLOR

< srcR, srcG, srcB, srcA

SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR

< 1-srcR, 1-srcG, 1-srcB, 1-srcA

SDL_BLENDFACTOR_SRC_ALPHA

< srcA, srcA, srcA, srcA

SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA

< 1-srcA, 1-srcA, 1-srcA, 1-srcA

SDL_BLENDFACTOR_DST_COLOR

< dstR, dstG, dstB, dstA

SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR

< 1-dstR, 1-dstG, 1-dstB, 1-dstA

SDL_BLENDFACTOR_DST_ALPHA

< dstA, dstA, dstA, dstA

SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA

< 1-dstA, 1-dstA, 1-dstA, 1-dstA

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.