mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Making the API simpler, the blend modes are "none, blend, add" and are supported by all renderers.
This commit is contained in:
@@ -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++ */
|
||||
|
||||
@@ -187,7 +187,6 @@ typedef struct SDL_RendererInfo
|
||||
const char *name; /**< The name of the renderer */
|
||||
Uint32 flags; /**< Supported ::SDL_RendererFlags */
|
||||
Uint32 mod_modes; /**< A mask of supported channel modulation */
|
||||
Uint32 blend_modes; /**< A mask of supported blend modes */
|
||||
Uint32 num_texture_formats; /**< The number of available texture formats */
|
||||
Uint32 texture_formats[50]; /**< The available texture formats */
|
||||
int max_texture_width; /**< The maximimum texture width */
|
||||
|
||||
Reference in New Issue
Block a user