Skip to content

TSdlBlendFactor

The normalized factor used to multiply pixel components.

The blend factors are multiplied with the pixels from a drawing operation (src) and the pixels from the render target (dst) before the blend operation. The comma-separated factors listed above are always applied in the component order red, green, blue, and alpha.

Definition

Unit: Neslib.Sdl3.Video

type TSdlBlendFactor = (Zero, One, SrcColor, OneMinusSrcColor, SrcAlpha, OneMinusSrcAlpha, DstColor, OneMinusDstColor, DstAlpha, OneMinusDstAlpha)

Enumeration Values

Zero = SDL_BLENDFACTOR_ZERO

0, 0, 0, 0


One = SDL_BLENDFACTOR_ONE

1, 1, 1, 1


SrcColor = SDL_BLENDFACTOR_SRC_COLOR

srcR, srcG, srcB, srcA


OneMinusSrcColor = SDL_BLENDFACTOR_ONE_MINUS_SRC_COLOR

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


SrcAlpha = SDL_BLENDFACTOR_SRC_ALPHA

srcA, srcA, srcA, srcA


OneMinusSrcAlpha = SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA

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


DstColor = SDL_BLENDFACTOR_DST_COLOR

dstR, dstG, dstB, dstA


OneMinusDstColor = SDL_BLENDFACTOR_ONE_MINUS_DST_COLOR

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


DstAlpha = SDL_BLENDFACTOR_DST_ALPHA

dstA, dstA, dstA, dstA


OneMinusDstAlpha = SDL_BLENDFACTOR_ONE_MINUS_DST_ALPHA

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