SDL Wiki

SDL_BlendMode

An enumeration of blend modes used in SDL_RenderCopy() and drawing operations. Note that additional values may be obtained from SDL_ComposeCustomBlendMode().

Values

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_RendererInfo
SDL_GetRenderDrawBlendMode
SDL_GetSurfaceBlendMode
SDL_GetTextureBlendMode
SDL_RenderCopy
SDL_SetRenderDrawBlendMode
SDL_SetSurfaceBlendMode
SDL_SetTextureBlendMode
SDL_ComposeCustomBlendMode

CategoryEnum, CategoryVideo


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.