annotate touchTest/Iphone Test/touchTestIPhone2/touchTestIPhone/include/SDL_compat.h @ 4691:73f5c530afac

Fixed hgIgnore to ignore test/gesturetest
author Jim Grandpre <jim.tla@gmail.com>
date Thu, 19 Aug 2010 13:49:11 -0400
parents 31607094315c
children
rev   line source
4677
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
1 /*
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
3 Copyright (C) 1997-2010 Sam Lantinga
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
4
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
7 License as published by the Free Software Foundation; either
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
9
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
13 Lesser General Public License for more details.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
14
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
18
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
19 Sam Lantinga
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
20 slouken@libsdl.org
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
21 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
22
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
23 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
24 * \defgroup Compatibility SDL 1.2 Compatibility API
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
25 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
26 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
27
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
28 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
29 * \file SDL_compat.h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
30 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
31 * This file contains functions for backwards compatibility with SDL 1.2.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
32 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
33
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
34 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
35 * \def SDL_NO_COMPAT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
36 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
37 * #define SDL_NO_COMPAT to prevent SDL_compat.h from being included.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
38 * SDL_NO_COMPAT is intended to make it easier to covert SDL 1.2 code to
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
39 * SDL 1.3/2.0.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
40 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
41
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
42 /*@}*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
43
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
44 #ifdef SDL_NO_COMPAT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
45 #define _SDL_compat_h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
46 #endif
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
47
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
48 #ifndef _SDL_compat_h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
49 #define _SDL_compat_h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
50
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
51 #include "SDL_video.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
52 #include "SDL_version.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
53
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
54 #include "begin_code.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
55 /* Set up for C function definitions, even when using C++ */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
56 #ifdef __cplusplus
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
57 /* *INDENT-OFF* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
58 extern "C" {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
59 /* *INDENT-ON* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
60 #endif
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
61
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
62 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
63 * \addtogroup Compatibility
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
64 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
65 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
66
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
67 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
68 * \name Surface flags
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
69 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
70 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
71 #define SDL_SWSURFACE 0x00000000 /**< \note Not used */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
72 #define SDL_SRCALPHA 0x00010000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
73 #define SDL_SRCCOLORKEY 0x00020000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
74 #define SDL_ANYFORMAT 0x00100000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
75 #define SDL_HWPALETTE 0x00200000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
76 #define SDL_DOUBLEBUF 0x00400000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
77 #define SDL_FULLSCREEN 0x00800000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
78 #define SDL_RESIZABLE 0x01000000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
79 #define SDL_NOFRAME 0x02000000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
80 #define SDL_OPENGL 0x04000000
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
81 #define SDL_HWSURFACE 0x08000001 /**< \note Not used */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
82 #define SDL_ASYNCBLIT 0x08000000 /**< \note Not used */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
83 #define SDL_RLEACCELOK 0x08000000 /**< \note Not used */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
84 #define SDL_HWACCEL 0x08000000 /**< \note Not used */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
85 /*@}*//*Surface flags*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
86
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
87 #define SDL_APPMOUSEFOCUS 0x01
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
88 #define SDL_APPINPUTFOCUS 0x02
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
89 #define SDL_APPACTIVE 0x04
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
90
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
91 #define SDL_LOGPAL 0x01
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
92 #define SDL_PHYSPAL 0x02
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
93
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
94 #define SDL_ACTIVEEVENT SDL_EVENT_COMPAT1
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
95 #define SDL_VIDEORESIZE SDL_EVENT_COMPAT2
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
96 #define SDL_VIDEOEXPOSE SDL_EVENT_COMPAT3
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
97 #define SDL_ACTIVEEVENTMASK SDL_ACTIVEEVENT, SDL_ACTIVEEVENT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
98 #define SDL_VIDEORESIZEMASK SDL_VIDEORESIZE, SDL_VIDEORESIZE
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
99 #define SDL_VIDEOEXPOSEMASK SDL_VIDEOEXPOSE, SDL_VIDEOEXPOSE
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
100 #define SDL_WINDOWEVENTMASK SDL_WINDOWEVENT, SDL_WINDOWEVENT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
101 #define SDL_KEYDOWNMASK SDL_KEYDOWN, SDL_KEYDOWN
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
102 #define SDL_KEYUPMASK SDL_KEYUP, SDL_KEYUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
103 #define SDL_KEYEVENTMASK SDL_KEYDOWN, SDL_KEYUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
104 #define SDL_TEXTEDITINGMASK SDL_TEXTEDITING, SDL_TEXTEDITING
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
105 #define SDL_TEXTINPUTMASK SDL_TEXTINPUT, SDL_TEXTINPUT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
106 #define SDL_MOUSEMOTIONMASK SDL_MOUSEMOTION, SDL_MOUSEMOTION
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
107 #define SDL_MOUSEBUTTONDOWNMASK SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONDOWN
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
108 #define SDL_MOUSEBUTTONUPMASK SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
109 #define SDL_MOUSEWHEELMASK SDL_MOUSEWHEEL, SDL_MOUSEWHEEL
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
110 #define SDL_MOUSEEVENTMASK SDL_MOUSEMOTION, SDL_MOUSEBUTTONUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
111 #define SDL_JOYAXISMOTIONMASK SDL_JOYAXISMOTION, SDL_JOYAXISMOTION
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
112 #define SDL_JOYBALLMOTIONMASK SDL_JOYBALLMOTION, SDL_JOYBALLMOTION
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
113 #define SDL_JOYHATMOTIONMASK SDL_JOYHATMOTION, SDL_JOYHATMOTION
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
114 #define SDL_JOYBUTTONDOWNMASK SDL_JOYBUTTONDOWN, SDL_JOYBUTTONDOWN
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
115 #define SDL_JOYBUTTONUPMASK SDL_JOYBUTTONUP, SDL_JOYBUTTONUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
116 #define SDL_JOYEVENTMASK SDL_JOYAXISMOTION, SDL_JOYBUTTONUP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
117 #define SDL_QUITMASK SDL_QUIT, SDL_QUIT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
118 #define SDL_SYSWMEVENTMASK SDL_SYSWMEVENT, SDL_SYSWMEVENT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
119 #define SDL_PROXIMITYINMASK SDL_PROXIMITYIN, SDL_PROXIMITYIN
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
120 #define SDL_PROXIMITYOUTMASK SDL_PROXIMITYOUT, SDL_PROXIMITYOUT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
121 #define SDL_ALLEVENTS SDL_FIRSTEVENT, SDL_LASTEVENT
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
122
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
123 #define SDL_BUTTON_WHEELUP 4
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
124 #define SDL_BUTTON_WHEELDOWN 5
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
125
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
126 #define SDL_DEFAULT_REPEAT_DELAY 500
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
127 #define SDL_DEFAULT_REPEAT_INTERVAL 30
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
128
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
129 typedef struct SDL_VideoInfo
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
130 {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
131 Uint32 hw_available:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
132 Uint32 wm_available:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
133 Uint32 UnusedBits1:6;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
134 Uint32 UnusedBits2:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
135 Uint32 blit_hw:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
136 Uint32 blit_hw_CC:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
137 Uint32 blit_hw_A:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
138 Uint32 blit_sw:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
139 Uint32 blit_sw_CC:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
140 Uint32 blit_sw_A:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
141 Uint32 blit_fill:1;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
142 Uint32 UnusedBits3:16;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
143 Uint32 video_mem;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
144
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
145 SDL_PixelFormat *vfmt;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
146
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
147 int current_w;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
148 int current_h;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
149 } SDL_VideoInfo;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
150
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
151 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
152 * \name Overlay formats
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
153 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
154 * The most common video overlay formats.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
155 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
156 * For an explanation of these pixel formats, see:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
157 * http://www.webartz.com/fourcc/indexyuv.htm
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
158 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
159 * For information on the relationship between color spaces, see:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
160 * http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
161 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
162 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
163 #define SDL_YV12_OVERLAY 0x32315659 /**< Planar mode: Y + V + U (3 planes) */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
164 #define SDL_IYUV_OVERLAY 0x56555949 /**< Planar mode: Y + U + V (3 planes) */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
165 #define SDL_YUY2_OVERLAY 0x32595559 /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
166 #define SDL_UYVY_OVERLAY 0x59565955 /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
167 #define SDL_YVYU_OVERLAY 0x55595659 /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
168 /*@}*//*Overlay formats*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
169
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
170 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
171 * The YUV hardware video overlay.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
172 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
173 typedef struct SDL_Overlay
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
174 {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
175 Uint32 format; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
176 int w, h; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
177 int planes; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
178 Uint16 *pitches; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
179 Uint8 **pixels; /**< Read-write */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
180
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
181 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
182 * \name Hardware-specific surface info
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
183 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
184 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
185 struct private_yuvhwfuncs *hwfuncs;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
186 struct private_yuvhwdata *hwdata;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
187 /*@}*//*Hardware-specific surface info*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
188
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
189 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
190 * \name Special flags
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
191 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
192 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
193 Uint32 hw_overlay:1; /**< Flag: This overlay hardware accelerated? */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
194 Uint32 UnusedBits:31;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
195 /*@}*//*Special flags*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
196 } SDL_Overlay;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
197
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
198 typedef enum
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
199 {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
200 SDL_GRAB_QUERY = -1,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
201 SDL_GRAB_OFF = 0,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
202 SDL_GRAB_ON = 1
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
203 } SDL_GrabMode;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
204
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
205 struct SDL_SysWMinfo;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
206
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
207 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
208 * \name Obsolete or renamed key codes
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
209 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
210 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
211
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
212 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
213 * \name Renamed keys
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
214 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
215 * These key constants were renamed for clarity or consistency.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
216 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
217 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
218 #define SDLK_KP0 SDLK_KP_0
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
219 #define SDLK_KP1 SDLK_KP_1
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
220 #define SDLK_KP2 SDLK_KP_2
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
221 #define SDLK_KP3 SDLK_KP_3
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
222 #define SDLK_KP4 SDLK_KP_4
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
223 #define SDLK_KP5 SDLK_KP_5
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
224 #define SDLK_KP6 SDLK_KP_6
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
225 #define SDLK_KP7 SDLK_KP_7
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
226 #define SDLK_KP8 SDLK_KP_8
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
227 #define SDLK_KP9 SDLK_KP_9
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
228 #define SDLK_NUMLOCK SDLK_NUMLOCKCLEAR
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
229 #define SDLK_SCROLLOCK SDLK_SCROLLLOCK
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
230 #define SDLK_PRINT SDLK_PRINTSCREEN
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
231 #define SDLK_LMETA SDLK_LGUI
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
232 #define SDLK_RMETA SDLK_RGUI
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
233 /*@}*//*Renamed keys*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
234
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
235 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
236 * \name META modifier
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
237 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
238 * The META modifier is equivalent to the GUI modifier from the USB standard.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
239 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
240 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
241 #define KMOD_LMETA KMOD_LGUI
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
242 #define KMOD_RMETA KMOD_RGUI
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
243 #define KMOD_META KMOD_GUI
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
244 /*@}*//*META modifier*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
245
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
246 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
247 * \name Not in USB
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
248 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
249 * These keys don't appear in the USB specification (or at least not under
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
250 * those names). I'm unsure if the following assignments make sense or if these
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
251 * codes should be defined as actual additional SDLK_ constants.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
252 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
253 /*@{*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
254 #define SDLK_LSUPER SDLK_LMETA
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
255 #define SDLK_RSUPER SDLK_RMETA
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
256 #define SDLK_COMPOSE SDLK_APPLICATION
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
257 #define SDLK_BREAK SDLK_STOP
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
258 #define SDLK_EURO SDLK_2
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
259 /*@}*//*Not in USB*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
260
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
261 /*@}*//*Obsolete or renamed key codes*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
262
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
263 #define SDL_SetModuleHandle(x)
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
264 #define SDL_AllocSurface SDL_CreateRGBSurface
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
265
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
266 extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
267 extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
268 extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
269 extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
270 extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
271 int height,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
272 int bpp, Uint32 flags);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
273 extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
274 format, Uint32 flags);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
275 extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
276 int bpp, Uint32 flags);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
277 extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
278 extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
279 int numrects, SDL_Rect * rects);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
280 extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
281 Sint32 x,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
282 Sint32 y, Uint32 w, Uint32 h);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
283 extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
284 extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
285 Uint32 flag, Uint8 alpha);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
286 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
287 extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
288 surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
289 extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
290 const char *icon);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
291 extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
292 const char **icon);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
293 extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
294 extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
295 extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
296 extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
297 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
298 int flags,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
299 const SDL_Color * colors,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
300 int firstcolor, int ncolors);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
301 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
302 const SDL_Color * colors,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
303 int firstcolor, int ncolors);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
304 extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
305 extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
306 extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
307 extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
308 int height,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
309 Uint32 format,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
310 SDL_Surface *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
311 display);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
312 extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay * overlay);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
313 extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
314 extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
315 SDL_Rect * dstrect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
316 extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
317 extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
318 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
319 extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
320 extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
321
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
322 #define SDL_TextureID SDL_Texture*
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
323 #define SDL_WindowID SDL_Window*
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
324 #define SDL_RenderPoint SDL_RenderDrawPoint
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
325 #define SDL_RenderLine SDL_RenderDrawLine
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
326 #define SDL_RenderFill(X) (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
327 #define SDL_KillThread(X)
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
328
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
329 extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
330
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
331 /*@}*//*Compatibility*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
332
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
333 /* Ends C function definitions when using C++ */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
334 #ifdef __cplusplus
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
335 /* *INDENT-OFF* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
336 }
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
337 /* *INDENT-ON* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
338 #endif
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
339 #include "close_code.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
340
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
341 #endif /* _SDL_compat_h */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
342
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
343 /* vi: set ts=4 sw=4 expandtab: */