annotate touchTest/Iphone Test/touchTestIPhone2/touchTestIPhone/include/SDL_surface.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 * \file SDL_surface.h
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 * Header file for ::SDL_surface definition and management functions.
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 #ifndef _SDL_surface_h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
30 #define _SDL_surface_h
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
31
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
32 #include "SDL_stdinc.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
33 #include "SDL_pixels.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
34 #include "SDL_rect.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
35 #include "SDL_rwops.h"
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 #include "begin_code.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
38 /* Set up for C function definitions, even when using C++ */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
39 #ifdef __cplusplus
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
40 /* *INDENT-OFF* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
41 extern "C" {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
42 /* *INDENT-ON* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
43 #endif
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
44
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
45 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
46 * \name Surface flags
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 * These are the currently supported flags for the ::SDL_surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
49 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
50 * \internal
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
51 * Used internally (read-only).
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
52 */
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 #define SDL_PREALLOC 0x00000001 /**< Surface uses preallocated memory */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
55 #define SDL_RLEACCEL 0x00000002 /**< Surface is RLE encoded */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
56 /*@}*//*Surface flags*/
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
57
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
58 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
59 * Evaluates to true if the surface needs to be locked before access.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
60 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
61 #define SDL_MUSTLOCK(S) (((S)->flags & SDL_RLEACCEL) != 0)
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 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
64 * \brief A collection of pixels used in software blitting.
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 * \note This structure should be treated as read-only, except for \c pixels,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
67 * which, if not NULL, contains the raw pixel data for the surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
68 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
69 typedef struct SDL_Surface
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 Uint32 flags; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
72 SDL_PixelFormat *format; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
73 int w, h; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
74 int pitch; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
75 void *pixels; /**< Read-write */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
76
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
77 /** Application data associated with the surface */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
78 void *userdata; /**< Read-write */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
79
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
80 /** information needed for surfaces requiring locks */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
81 int locked; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
82 void *lock_data; /**< Read-only */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
83
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
84 /** clipping information */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
85 SDL_Rect clip_rect; /**< Read-only */
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 /** info for fast blit mapping to other surfaces */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
88 struct SDL_BlitMap *map; /**< Private */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
89
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
90 /** format version, bumped at every change to invalidate blit maps */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
91 unsigned int format_version; /**< Private */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
92
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
93 /** Reference count -- used when freeing surface */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
94 int refcount; /**< Read-mostly */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
95 } SDL_Surface;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
96
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
97 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
98 * \brief The type of function used for surface blitting functions.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
99 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
100 typedef int (*SDL_blit) (struct SDL_Surface * src, SDL_Rect * srcrect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
101 struct SDL_Surface * dst, SDL_Rect * dstrect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
102
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
103 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
104 * Allocate and free an RGB surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
105 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
106 * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
107 * If the depth is greater than 8 bits, the pixel format is set using the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
108 * flags '[RGB]mask'.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
109 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
110 * If the function runs out of memory, it will return NULL.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
111 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
112 * \param flags The \c flags are obsolete and should be set to 0.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
113 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
114 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
115 (Uint32 flags, int width, int height, int depth,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
116 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
117 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
118 int width,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
119 int height,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
120 int depth,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
121 int pitch,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
122 Uint32 Rmask,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
123 Uint32 Gmask,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
124 Uint32 Bmask,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
125 Uint32 Amask);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
126 extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface * surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
127
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 * \brief Set the palette used by a surface.
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 * \return 0, or -1 if the surface format doesn't use a palette.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
132 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
133 * \note A single palette can be shared with many surfaces.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
134 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
135 extern DECLSPEC int SDLCALL SDL_SetSurfacePalette(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
136 SDL_Palette * palette);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
137
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
138 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
139 * \brief Sets up a surface for directly accessing the pixels.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
140 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
141 * Between calls to SDL_LockSurface() / SDL_UnlockSurface(), you can write
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
142 * to and read from \c surface->pixels, using the pixel format stored in
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
143 * \c surface->format. Once you are done accessing the surface, you should
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
144 * use SDL_UnlockSurface() to release it.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
145 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
146 * Not all surfaces require locking. If SDL_MUSTLOCK(surface) evaluates
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
147 * to 0, then you can read and write to the surface at any time, and the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
148 * pixel format of the surface will not change.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
149 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
150 * No operating system or library calls should be made between lock/unlock
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
151 * pairs, as critical system locks may be held during this time.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
152 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
153 * SDL_LockSurface() returns 0, or -1 if the surface couldn't be locked.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
154 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
155 * \sa SDL_UnlockSurface()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
156 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
157 extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface * surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
158 /** \sa SDL_LockSurface() */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
159 extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface * surface);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
160
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 * Load a surface from a seekable SDL data source (memory or file).
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
163 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
164 * If \c freesrc is non-zero, the source will be closed after being read.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
165 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
166 * The new surface should be freed with SDL_FreeSurface().
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
167 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
168 * \return the new surface, or NULL if there was an error.
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 extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
171 int freesrc);
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 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
174 * Load a surface from a file.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
175 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
176 * Convenience macro.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
177 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
178 #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
179
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 * Save a surface to a seekable SDL data source (memory or file).
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
182 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
183 * If \c freedst is non-zero, the source will be closed after being written.
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 * \return 0 if successful or -1 if there was an error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
186 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
187 extern DECLSPEC int SDLCALL SDL_SaveBMP_RW
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
188 (SDL_Surface * surface, SDL_RWops * dst, int freedst);
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 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
191 * Save a surface to a file.
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 * Convenience macro.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
194 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
195 #define SDL_SaveBMP(surface, file) \
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
196 SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)
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 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
199 * \brief Sets the RLE acceleration hint for a surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
200 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
201 * \return 0 on success, or -1 if the surface is not valid
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
202 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
203 * \note If RLE is enabled, colorkey and alpha blending blits are much faster,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
204 * but the surface must be locked before directly accessing the pixels.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
205 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
206 extern DECLSPEC int SDLCALL SDL_SetSurfaceRLE(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
207 int flag);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
208
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 * \brief Sets the color key (transparent pixel) in a blittable surface.
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 * \param surface The surface to update
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
213 * \param flag Non-zero to enable colorkey and 0 to disable colorkey
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
214 * \param key The transparent pixel in the native surface format
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
215 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
216 * \return 0 on success, or -1 if the surface is not valid
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 extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
219 int flag, Uint32 key);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
220
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
221 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
222 * \brief Gets the color key (transparent pixel) in a blittable surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
223 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
224 * \param surface The surface to update
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
225 * \param key A pointer filled in with the transparent pixel in the native
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
226 * surface format
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
227 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
228 * \return 0 on success, or -1 if the surface is not valid or colorkey is not
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
229 * enabled.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
230 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
231 extern DECLSPEC int SDLCALL SDL_GetColorKey(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
232 Uint32 * key);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
233
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 * \brief Set an additional color value used in blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
236 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
237 * \param surface The surface to update.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
238 * \param r The red source color value multiplied into blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
239 * \param g The green source color value multiplied into blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
240 * \param b The blue source color value multiplied into blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
241 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
242 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
243 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
244 * \sa SDL_GetSurfaceColorMod()
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 extern DECLSPEC int SDLCALL SDL_SetSurfaceColorMod(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
247 Uint8 r, Uint8 g, Uint8 b);
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
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
250 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
251 * \brief Get the additional color value used in blit operations.
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 * \param surface The surface to query.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
254 * \param r A pointer filled in with the source red color value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
255 * \param g A pointer filled in with the source green color value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
256 * \param b A pointer filled in with the source blue color value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
257 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
258 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
259 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
260 * \sa SDL_SetSurfaceColorMod()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
261 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
262 extern DECLSPEC int SDLCALL SDL_GetSurfaceColorMod(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
263 Uint8 * r, Uint8 * g,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
264 Uint8 * b);
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 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
267 * \brief Set an additional alpha value used in blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
268 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
269 * \param surface The surface to update.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
270 * \param alpha The source alpha value multiplied into blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
271 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
272 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
273 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
274 * \sa SDL_GetSurfaceAlphaMod()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
275 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
276 extern DECLSPEC int SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
277 Uint8 alpha);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
278
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
279 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
280 * \brief Get the additional alpha value used in blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
281 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
282 * \param surface The surface to query.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
283 * \param alpha A pointer filled in with the source alpha value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
284 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
285 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
286 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
287 * \sa SDL_SetSurfaceAlphaMod()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
288 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
289 extern DECLSPEC int SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
290 Uint8 * alpha);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
291
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
292 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
293 * \brief Set the blend mode used for blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
294 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
295 * \param surface The surface to update.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
296 * \param blendMode ::SDL_BlendMode to use for blit blending.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
297 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
298 * \return 0 on success, or -1 if the parameters are not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
299 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
300 * \sa SDL_GetSurfaceBlendMode()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
301 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
302 extern DECLSPEC int SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
303 int blendMode);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
304
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
305 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
306 * \brief Get the blend mode used for blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
307 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
308 * \param surface The surface to query.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
309 * \param blendMode A pointer filled in with the current blend mode.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
310 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
311 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
312 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
313 * \sa SDL_SetSurfaceBlendMode()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
314 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
315 extern DECLSPEC int SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
316 int *blendMode);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
317
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
318 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
319 * \brief Set the scale mode used for blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
320 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
321 * \param surface The surface to update.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
322 * \param scaleMode ::SDL_TextureScaleMode to use for blit scaling.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
323 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
324 * \return 0 on success, or -1 if the surface is not valid or the scale mode is
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
325 * not supported.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
326 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
327 * \note If the scale mode is not supported, the closest supported mode is
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
328 * chosen. Currently only ::SDL_TEXTURESCALEMODE_FAST is supported on
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
329 * surfaces.
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 * \sa SDL_GetSurfaceScaleMode()
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 extern DECLSPEC int SDLCALL SDL_SetSurfaceScaleMode(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
334 int scaleMode);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
335
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 * \brief Get the scale mode used for blit operations.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
338 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
339 * \param surface The surface to query.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
340 * \param scaleMode A pointer filled in with the current scale mode.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
341 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
342 * \return 0 on success, or -1 if the surface is not valid.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
343 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
344 * \sa SDL_SetSurfaceScaleMode()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
345 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
346 extern DECLSPEC int SDLCALL SDL_GetSurfaceScaleMode(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
347 int *scaleMode);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
348
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
349 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
350 * Sets the clipping rectangle for the destination surface in a blit.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
351 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
352 * If the clip rectangle is NULL, clipping will be disabled.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
353 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
354 * If the clip rectangle doesn't intersect the surface, the function will
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
355 * return SDL_FALSE and blits will be completely clipped. Otherwise the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
356 * function returns SDL_TRUE and blits to the surface will be clipped to
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
357 * the intersection of the surface area and the clipping rectangle.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
358 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
359 * Note that blits are automatically clipped to the edges of the source
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
360 * and destination surfaces.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
361 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
362 extern DECLSPEC SDL_bool SDLCALL SDL_SetClipRect(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
363 const SDL_Rect * rect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
364
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
365 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
366 * Gets the clipping rectangle for the destination surface in a blit.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
367 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
368 * \c rect must be a pointer to a valid rectangle which will be filled
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
369 * with the correct values.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
370 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
371 extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
372 SDL_Rect * rect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
373
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
374 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
375 * Creates a new surface of the specified format, and then copies and maps
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
376 * the given surface to it so the blit of the converted surface will be as
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
377 * fast as possible. If this function fails, it returns NULL.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
378 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
379 * The \c flags parameter is passed to SDL_CreateRGBSurface() and has those
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
380 * semantics. You can also pass ::SDL_RLEACCEL in the flags parameter and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
381 * SDL will try to RLE accelerate colorkey and alpha blits in the resulting
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
382 * surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
383 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
384 extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
385 (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
386
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
387 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
388 * \brief Copy a block of pixels of one format to another format
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
389 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
390 extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
391 Uint32 src_format,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
392 const void * src, int src_pitch,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
393 Uint32 dst_format,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
394 void * dst, int dst_pitch);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
395
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
396 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
397 * Draws a point with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
398 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
399 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
400 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
401 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
402 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
403 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
404 extern DECLSPEC int SDLCALL SDL_DrawPoint
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
405 (SDL_Surface * dst, int x, int y, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
406 extern DECLSPEC int SDLCALL SDL_DrawPoints
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
407 (SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
408
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
409 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
410 * Blends a point with an RGBA value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
411 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
412 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
413 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
414 extern DECLSPEC int SDLCALL SDL_BlendPoint
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
415 (SDL_Surface * dst, int x, int y,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
416 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
417 extern DECLSPEC int SDLCALL SDL_BlendPoints
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
418 (SDL_Surface * dst, const SDL_Point * points, int count,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
419 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
420
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
421 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
422 * Draws a line with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
423 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
424 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
425 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
426 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
427 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
428 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
429 extern DECLSPEC int SDLCALL SDL_DrawLine
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
430 (SDL_Surface * dst, int x1, int y1, int x2, int y2, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
431 extern DECLSPEC int SDLCALL SDL_DrawLines
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
432 (SDL_Surface * dst, const SDL_Point * points, int count, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
433
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
434 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
435 * Blends an RGBA value along a line.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
436 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
437 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
438 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
439 extern DECLSPEC int SDLCALL SDL_BlendLine
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
440 (SDL_Surface * dst, int x1, int y1, int x2, int y2,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
441 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
442 extern DECLSPEC int SDLCALL SDL_BlendLines
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
443 (SDL_Surface * dst, const SDL_Point * points, int count,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
444 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
445
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
446 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
447 * Draws the given rectangle with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
448 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
449 * If \c rect is NULL, the whole surface will be outlined with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
450 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
451 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
452 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
453 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
454 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
455 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
456 extern DECLSPEC int SDLCALL SDL_DrawRect
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
457 (SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
458 extern DECLSPEC int SDLCALL SDL_DrawRects
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
459 (SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
460
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
461 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
462 * Blends an RGBA value into the outline of the given rectangle.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
463 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
464 * If \c rect is NULL, the whole surface will have a blended outline.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
465 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
466 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
467 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
468 extern DECLSPEC int SDLCALL SDL_BlendRect
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
469 (SDL_Surface * dst, const SDL_Rect * rect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
470 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
471 extern DECLSPEC int SDLCALL SDL_BlendRects
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
472 (SDL_Surface * dst, const SDL_Rect ** rects, int count,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
473 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
474
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
475 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
476 * Performs a fast fill of the given rectangle with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
477 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
478 * If \c rect is NULL, the whole surface will be filled with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
479 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
480 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
481 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
482 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
483 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
484 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
485 extern DECLSPEC int SDLCALL SDL_FillRect
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
486 (SDL_Surface * dst, const SDL_Rect * rect, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
487 extern DECLSPEC int SDLCALL SDL_FillRects
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
488 (SDL_Surface * dst, const SDL_Rect ** rects, int count, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
489
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
490 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
491 * Blends an RGBA value into the given rectangle.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
492 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
493 * If \c rect is NULL, the whole surface will be blended with the color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
494 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
495 * \return This function returns 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
496 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
497 extern DECLSPEC int SDLCALL SDL_BlendFillRect
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
498 (SDL_Surface * dst, const SDL_Rect * rect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
499 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
500 extern DECLSPEC int SDLCALL SDL_BlendFillRects
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
501 (SDL_Surface * dst, const SDL_Rect ** rects, int count,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
502 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
503
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
504 #if 0
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
505 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
506 * Draws the given circle with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
507 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
508 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
509 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
510 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
511 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
512 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
513 extern DECLSPEC int SDLCALL SDL_DrawCircle
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
514 (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
515
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
516 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
517 * Blends an RGBA value into the outline of the given circle.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
518 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
519 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
520 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
521 extern DECLSPEC int SDLCALL SDL_BlendCircle
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
522 (SDL_Surface * dst, int x, int y, int radius,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
523 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
524
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
525 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
526 * Fills the given circle with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
527 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
528 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
529 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
530 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
531 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
532 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
533 extern DECLSPEC int SDLCALL SDL_FillCircle
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
534 (SDL_Surface * dst, int x, int y, int radius, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
535
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
536 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
537 * Blends an RGBA value into the given circle.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
538 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
539 * \return This function returns 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
540 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
541 extern DECLSPEC int SDLCALL SDL_BlendFillCircle
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
542 (SDL_Surface * dst, int x, int y, int radius,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
543 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
544
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
545 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
546 * Draws the given ellipse with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
547 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
548 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
549 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
550 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
551 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
552 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
553 extern DECLSPEC int SDLCALL SDL_DrawEllipse
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
554 (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
555
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
556 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
557 * Blends an RGBA value into the outline of the given ellipse.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
558 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
559 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
560 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
561 extern DECLSPEC int SDLCALL SDL_BlendEllipse
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
562 (SDL_Surface * dst, int x, int y, int w, int h,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
563 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
564
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
565 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
566 * Fills the given ellipse with \c color.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
567 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
568 * The color should be a pixel of the format used by the surface, and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
569 * can be generated by the SDL_MapRGB() function.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
570 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
571 * \return 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
572 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
573 extern DECLSPEC int SDLCALL SDL_FillEllipse
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
574 (SDL_Surface * dst, int x, int y, int w, int h, Uint32 color);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
575
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
576 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
577 * Blends an RGBA value into the given ellipse.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
578 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
579 * \return This function returns 0 on success, or -1 on error.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
580 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
581 extern DECLSPEC int SDLCALL SDL_BlendFillEllipse
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
582 (SDL_Surface * dst, int x, int y, int w, int h,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
583 int blendMode, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
584 #endif // 0
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
585
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
586 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
587 * Performs a fast blit from the source surface to the destination surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
588 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
589 * This assumes that the source and destination rectangles are
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
590 * the same size. If either \c srcrect or \c dstrect are NULL, the entire
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
591 * surface (\c src or \c dst) is copied. The final blit rectangles are saved
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
592 * in \c srcrect and \c dstrect after all clipping is performed.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
593 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
594 * \return If the blit is successful, it returns 0, otherwise it returns -1.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
595 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
596 * The blit function should not be called on a locked surface.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
597 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
598 * The blit semantics for surfaces with and without alpha and colorkey
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
599 * are defined as follows:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
600 * \verbatim
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
601 RGBA->RGB:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
602 SDL_SRCALPHA set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
603 alpha-blend (using alpha-channel).
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
604 SDL_SRCCOLORKEY ignored.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
605 SDL_SRCALPHA not set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
606 copy RGB.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
607 if SDL_SRCCOLORKEY set, only copy the pixels matching the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
608 RGB values of the source colour key, ignoring alpha in the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
609 comparison.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
610
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
611 RGB->RGBA:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
612 SDL_SRCALPHA set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
613 alpha-blend (using the source per-surface alpha value);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
614 set destination alpha to opaque.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
615 SDL_SRCALPHA not set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
616 copy RGB, set destination alpha to source per-surface alpha value.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
617 both:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
618 if SDL_SRCCOLORKEY set, only copy the pixels matching the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
619 source colour key.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
620
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
621 RGBA->RGBA:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
622 SDL_SRCALPHA set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
623 alpha-blend (using the source alpha channel) the RGB values;
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
624 leave destination alpha untouched. [Note: is this correct?]
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
625 SDL_SRCCOLORKEY ignored.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
626 SDL_SRCALPHA not set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
627 copy all of RGBA to the destination.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
628 if SDL_SRCCOLORKEY set, only copy the pixels matching the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
629 RGB values of the source colour key, ignoring alpha in the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
630 comparison.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
631
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
632 RGB->RGB:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
633 SDL_SRCALPHA set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
634 alpha-blend (using the source per-surface alpha value).
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
635 SDL_SRCALPHA not set:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
636 copy RGB.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
637 both:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
638 if SDL_SRCCOLORKEY set, only copy the pixels matching the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
639 source colour key.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
640 \endverbatim
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
641 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
642 * If either of the surfaces were in video memory, and the blit returns -2,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
643 * the video memory was lost, so it should be reloaded with artwork and
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
644 * re-blitted:
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
645 * @code
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
646 * while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) {
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
647 * while ( SDL_LockSurface(image) < 0 )
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
648 * Sleep(10);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
649 * -- Write image pixels to image->pixels --
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
650 * SDL_UnlockSurface(image);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
651 * }
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
652 * @endcode
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
653 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
654 * This happens under DirectX 5.0 when the system switches away from your
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
655 * fullscreen application. The lock will also fail until you have access
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
656 * to the video memory again.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
657 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
658 * You should call SDL_BlitSurface() unless you know exactly how SDL
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
659 * blitting works internally and how to use the other blit functions.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
660 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
661 #define SDL_BlitSurface SDL_UpperBlit
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
662
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
663 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
664 * This is the public blit function, SDL_BlitSurface(), and it performs
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
665 * rectangle validation and clipping before passing it to SDL_LowerBlit()
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
666 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
667 extern DECLSPEC int SDLCALL SDL_UpperBlit
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
668 (SDL_Surface * src, SDL_Rect * srcrect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
669 SDL_Surface * dst, SDL_Rect * dstrect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
670
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
671 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
672 * This is a semi-private blit function and it performs low-level surface
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
673 * blitting only.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
674 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
675 extern DECLSPEC int SDLCALL SDL_LowerBlit
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
676 (SDL_Surface * src, SDL_Rect * srcrect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
677 SDL_Surface * dst, SDL_Rect * dstrect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
678
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
679 /**
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
680 * \brief Perform a fast, low quality, stretch blit between two surfaces of the
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
681 * same pixel format.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
682 *
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
683 * \note This function uses a static buffer, and is not thread-safe.
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
684 */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
685 extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface * src,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
686 const SDL_Rect * srcrect,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
687 SDL_Surface * dst,
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
688 const SDL_Rect * dstrect);
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
689
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
690 /* Ends C function definitions when using C++ */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
691 #ifdef __cplusplus
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
692 /* *INDENT-OFF* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
693 }
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
694 /* *INDENT-ON* */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
695 #endif
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
696 #include "close_code.h"
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
697
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
698 #endif /* _SDL_surface_h */
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
699
31607094315c Added Iphone project. Iphone multi-touch is now functional.
jimtla
parents:
diff changeset
700 /* vi: set ts=4 sw=4 expandtab: */