Mercurial > sdl-ios-xcode
comparison include/SDL_scalemode.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 |
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_scalemode.h | |
25 * | |
26 * Header file declaring the SDL_ScaleMode enumeration | |
27 */ | |
28 | |
29 #ifndef _SDL_scalemode_h | |
30 #define _SDL_scalemode_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 texture scale mode used in SDL_RenderCopy(). | |
42 */ | |
43 typedef enum | |
44 { | |
45 SDL_SCALEMODE_NONE = 0x00000000, /**< No scaling, rectangles must | |
46 match dimensions */ | |
47 | |
48 SDL_SCALEMODE_FAST = 0x00000001, /**< Point sampling or | |
49 equivalent algorithm */ | |
50 | |
51 SDL_SCALEMODE_SLOW = 0x00000002, /**< Linear filtering or | |
52 equivalent algorithm */ | |
53 | |
54 SDL_SCALEMODE_BEST = 0x00000004 /**< Bicubic filtering or | |
55 equivalent algorithm */ | |
56 } SDL_ScaleMode; | |
57 | |
58 | |
59 /* Ends C function definitions when using C++ */ | |
60 #ifdef __cplusplus | |
61 /* *INDENT-OFF* */ | |
62 } | |
63 /* *INDENT-ON* */ | |
64 #endif | |
65 #include "close_code.h" | |
66 | |
67 #endif /* _SDL_video_h */ | |
68 | |
69 /* vi: set ts=4 sw=4 expandtab: */ |