include/SDL_blendmode.h
changeset 7502 6ff02ff3cf06
parent 7191 75360622e65f
child 8149 681eb46b8ac4
     1.1 --- a/include/SDL_blendmode.h	Mon Jul 22 02:51:45 2013 -0700
     1.2 +++ b/include/SDL_blendmode.h	Tue Jul 23 08:06:49 2013 -0700
     1.3 @@ -39,10 +39,17 @@
     1.4   */
     1.5  typedef enum
     1.6  {
     1.7 -    SDL_BLENDMODE_NONE = 0x00000000,     /**< No blending */
     1.8 -    SDL_BLENDMODE_BLEND = 0x00000001,    /**< dst = (src * A) + (dst * (1-A)) */
     1.9 -    SDL_BLENDMODE_ADD = 0x00000002,      /**< dst = (src * A) + dst */
    1.10 -    SDL_BLENDMODE_MOD = 0x00000004       /**< dst = src * dst */
    1.11 +    SDL_BLENDMODE_NONE = 0x00000000,     /**< no blending
    1.12 +                                              dstRGBA = srcRGBA */
    1.13 +    SDL_BLENDMODE_BLEND = 0x00000001,    /**< alpha blending
    1.14 +                                              dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
    1.15 +                                              dstA = srcA + (dstA * (1-srcA)) */
    1.16 +    SDL_BLENDMODE_ADD = 0x00000002,      /**< additive blending
    1.17 +                                              dstRGB = (srcRGB * srcA) + dstRGB
    1.18 +                                              dstA = dstA */
    1.19 +    SDL_BLENDMODE_MOD = 0x00000004       /**< color modulate
    1.20 +                                              dstRGB = srcRGB * dstRGB
    1.21 +                                              dstA = dstA */
    1.22  } SDL_BlendMode;
    1.23  
    1.24  /* Ends C function definitions when using C++ */