Mercurial > sdl-ios-xcode
comparison include/SDL_surface.h @ 3026:69ab1117dd3b
Reverted SDL_LoadICO_RW() addition, this should go in SDL_image
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jan 2009 06:21:34 +0000 |
parents | 1a08749aebce |
children | 7be21a78777e |
comparison
equal
deleted
inserted
replaced
3025:54fac87e1f34 | 3026:69ab1117dd3b |
---|---|
153 * If 'freesrc' is non-zero, the source will be closed after being read. | 153 * If 'freesrc' is non-zero, the source will be closed after being read. |
154 * Returns the new surface, or NULL if there was an error. | 154 * Returns the new surface, or NULL if there was an error. |
155 * The new surface should be freed with SDL_FreeSurface(). | 155 * The new surface should be freed with SDL_FreeSurface(). |
156 */ | 156 */ |
157 extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src, | 157 extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src, |
158 int freesrc); | |
159 | |
160 /* | |
161 * Load Icon best quality icon from ICO file and return as RGBA surface | |
162 */ | |
163 extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadICO_RW(SDL_RWops * src, | |
164 int freesrc); | 158 int freesrc); |
165 | 159 |
166 /* Convenience macro -- load a surface from a file */ | 160 /* Convenience macro -- load a surface from a file */ |
167 #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) | 161 #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) |
168 | 162 |