Mercurial > sdl-ios-xcode
comparison include/SDL_blendmode.h @ 4929:aa8888658021
Use the enumerated type for blend and scale mode instead of int
Renamed SDL_TextureScaleMode to SDL_ScaleMode
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 12 Dec 2010 15:19:05 -0800 |
parents | |
children | e743b9c3f6d6 |
comparison
equal
deleted
inserted
replaced
4927:d716dff4b13e | 4929:aa8888658021 |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997-2010 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Lesser General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2.1 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Lesser General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 /** | |
24 * \file SDL_blendmode.h | |
25 * | |
26 * Header file declaring the SDL_BlendMode enumeration | |
27 */ | |
28 | |
29 #ifndef _SDL_blendmode_h | |
30 #define _SDL_blendmode_h | |
31 | |
32 #include "begin_code.h" | |
33 /* Set up for C function definitions, even when using C++ */ | |
34 #ifdef __cplusplus | |
35 /* *INDENT-OFF* */ | |
36 extern "C" { | |
37 /* *INDENT-ON* */ | |
38 #endif | |
39 | |
40 /** | |
41 * \brief The blend mode used in SDL_RenderCopy() and drawing operations. | |
42 */ | |
43 typedef enum | |
44 { | |
45 SDL_BLENDMODE_NONE = 0x00000000, /**< No blending */ | |
46 SDL_BLENDMODE_MASK = 0x00000001, /**< dst = A ? src : dst | |
47 (alpha is mask) */ | |
48 | |
49 SDL_BLENDMODE_BLEND = 0x00000002, /**< dst = (src * A) + (dst * (1-A)) */ | |
50 SDL_BLENDMODE_ADD = 0x00000004, /**< dst = (src * A) + dst */ | |
51 SDL_BLENDMODE_MOD = 0x00000008 /**< dst = src * dst */ | |
52 } SDL_BlendMode; | |
53 | |
54 /* Ends C function definitions when using C++ */ | |
55 #ifdef __cplusplus | |
56 /* *INDENT-OFF* */ | |
57 } | |
58 /* *INDENT-ON* */ | |
59 #endif | |
60 #include "close_code.h" | |
61 | |
62 #endif /* _SDL_video_h */ | |
63 | |
64 /* vi: set ts=4 sw=4 expandtab: */ |