---
name: "SDL_BlendMode"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_BlendMode"
---

# SDL\_BlendMode(3type)

A set of blend modes used in drawing operations.

## NAME

SDL\_BlendMode - A set of blend modes used in drawing operations.

## HEADER FILE

Defined in SDL3/SDL\_blendmode.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef Uint32 SDL\_BlendMode;** **#define SDL\_BLENDMODE\_NONE                  0x00000000u /\*\*\< no blending: dstRGBA = srcRGBA \*/** **#define SDL\_BLENDMODE\_BLEND                 0x00000001u /\*\*\< alpha blending: dstRGB = (srcRGB \* srcA) + (dstRGB \* (1-srcA)), dstA = srcA + (dstA \* (1-srcA)) \*/** **#define SDL\_BLENDMODE\_BLEND\_PREMULTIPLIED   0x00000010u /\*\*\< pre-multiplied alpha blending: dstRGBA = srcRGBA + (dstRGBA \* (1-srcA)) \*/** **#define SDL\_BLENDMODE\_ADD                   0x00000002u /\*\*\< additive blending: dstRGB = (srcRGB \* srcA) + dstRGB, dstA = dstA \*/** **#define SDL\_BLENDMODE\_ADD\_PREMULTIPLIED     0x00000020u /\*\*\< pre-multiplied additive blending: dstRGB = srcRGB + dstRGB, dstA = dstA \*/** **#define SDL\_BLENDMODE\_MOD                   0x00000004u /\*\*\< color modulate: dstRGB = srcRGB \* dstRGB, dstA = dstA \*/** **#define SDL\_BLENDMODE\_MUL                   0x00000008u /\*\*\< color multiply: dstRGB = (srcRGB \* dstRGB) + (dstRGB \* (1-srcA)), dstA = dstA \*/** **#define SDL\_BLENDMODE\_INVALID               0x7FFFFFFFu**

## DESCRIPTION

These predefined blend modes are supported everywhere.

Additional values may be obtained from

**SDL\_ComposeCustomBlendMode** .

## AVAILABILITY

This datatype is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_ComposeCustomBlendMode**(3)](/SDL_ComposeCustomBlendMode/3.md)
