summaryrefslogtreecommitdiff
path: root/include/SDL_blendmode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/SDL_blendmode.h')
-rw-r--r--include/SDL_blendmode.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/SDL_blendmode.h b/include/SDL_blendmode.h
index 37c475aefd..85aa474595 100644
--- a/include/SDL_blendmode.h
+++ b/include/SDL_blendmode.h
@@ -39,10 +39,17 @@ extern "C" {
*/
typedef enum
{
- SDL_BLENDMODE_NONE = 0x00000000, /**< No blending */
- SDL_BLENDMODE_BLEND = 0x00000001, /**< dst = (src * A) + (dst * (1-A)) */
- SDL_BLENDMODE_ADD = 0x00000002, /**< dst = (src * A) + dst */
- SDL_BLENDMODE_MOD = 0x00000004 /**< dst = src * dst */
+ SDL_BLENDMODE_NONE = 0x00000000, /**< no blending
+ dstRGBA = srcRGBA */
+ SDL_BLENDMODE_BLEND = 0x00000001, /**< alpha blending
+ dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
+ dstA = srcA + (dstA * (1-srcA)) */
+ SDL_BLENDMODE_ADD = 0x00000002, /**< additive blending
+ dstRGB = (srcRGB * srcA) + dstRGB
+ dstA = dstA */
+ SDL_BLENDMODE_MOD = 0x00000004 /**< color modulate
+ dstRGB = srcRGB * dstRGB
+ dstA = dstA */
} SDL_BlendMode;
/* Ends C function definitions when using C++ */