zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_blendmode.h File Reference
#include "begin_code.h"
#include "close_code.h"

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.