SDL standard library

Dependents:   H261_encoder

Embed: (wiki syntax)

« Back to documentation index

SDL_blendmode.h File Reference

SDL_blendmode.h File Reference

Header file declaring the SDL_BlendMode enumeration. More...

Go to the source code of this file.

Enumerations

enum  SDL_BlendMode { SDL_BLENDMODE_NONE = 0x00000000, SDL_BLENDMODE_BLEND = 0x00000001, SDL_BLENDMODE_ADD = 0x00000002, SDL_BLENDMODE_MOD = 0x00000004 }
 

The blend mode used in SDL_RenderCopy() and drawing operations.

More...

Detailed Description

Header file declaring the SDL_BlendMode enumeration.

Definition in file SDL_blendmode.h.


Enumeration Type Documentation

The blend mode used in SDL_RenderCopy() and drawing operations.

Enumerator:
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

Definition at line 40 of file SDL_blendmode.h.