Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.

--HG--
extra : rebase_source : f06ea01caa64c8ad14170c723e5af52dad64d779
This commit is contained in:
Sam Lantinga 2011-01-31 23:23:57 -08:00
parent 372693d86f
commit 825e1da54d
31 changed files with 193 additions and 2686 deletions

View file

@ -43,12 +43,8 @@ extern "C" {
typedef enum
{
SDL_BLENDMODE_NONE = 0x00000000, /**< No blending */
SDL_BLENDMODE_MASK = 0x00000001, /**< dst = A ? src : dst
(alpha is mask) */
SDL_BLENDMODE_BLEND = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */
SDL_BLENDMODE_ADD = 0x00000004, /**< dst = (src * A) + dst */
SDL_BLENDMODE_MOD = 0x00000008 /**< dst = src * dst */
SDL_BLENDMODE_BLEND = 0x00000001, /**< dst = (src * A) + (dst * (1-A)) */
SDL_BLENDMODE_ADD = 0x00000002, /**< dst = (src * A) + dst */
} SDL_BlendMode;
/* Ends C function definitions when using C++ */