Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_BlendMode - A set of blend modes used in drawing operations.

Availability

       This datatype is available since SDL 3.2.0.

Description

       These predefined blend modes are supported everywhere.

       Additional values may be obtained from SDL_ComposeCustomBlendMode.

Name

       SDL_BlendMode - A set of blend modes used in drawing operations.

See Also

SDL_ComposeCustomBlendMode(3)

Simple Directmedia Layer                           SDL 3.2.20                               SDL_BlendMode(3type)

Synopsis

#include<SDL3/SDL_blendmode.h>typedefUint32SDL_BlendMode;#defineSDL_BLENDMODE_NONE0x00000000u/**<noblending:dstRGBA=srcRGBA*/#defineSDL_BLENDMODE_BLEND0x00000001u/**<alphablending:dstRGB=(srcRGB*srcA)+(dstRGB*(1-srcA)),dstA=srcA+(dstA*(1-srcA))*/#defineSDL_BLENDMODE_BLEND_PREMULTIPLIED0x00000010u/**<pre-multipliedalphablending:dstRGBA=srcRGBA+(dstRGBA*(1-srcA))*/#defineSDL_BLENDMODE_ADD0x00000002u/**<additiveblending:dstRGB=(srcRGB*srcA)+dstRGB,dstA=dstA*/#defineSDL_BLENDMODE_ADD_PREMULTIPLIED0x00000020u/**<pre-multipliedadditiveblending:dstRGB=srcRGB+dstRGB,dstA=dstA*/#defineSDL_BLENDMODE_MOD0x00000004u/**<colormodulate:dstRGB=srcRGB*dstRGB,dstA=dstA*/#defineSDL_BLENDMODE_MUL0x00000008u/**<colormultiply:dstRGB=(srcRGB*dstRGB)+(dstRGB*(1-srcA)),dstA=dstA*/#defineSDL_BLENDMODE_INVALID0x7FFFFFFFu

See Also