Mercurial > sdl-ios-xcode
comparison include/SDL_surface.h @ 3024:1a08749aebce
Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file.
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Sun, 11 Jan 2009 23:56:19 +0000 |
parents | 133601e3b255 |
children | 69ab1117dd3b |
comparison
equal
deleted
inserted
replaced
3023:d72a0dd80e8b | 3024:1a08749aebce |
---|---|
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, | |
158 int freesrc); | 164 int freesrc); |
159 | 165 |
160 /* Convenience macro -- load a surface from a file */ | 166 /* Convenience macro -- load a surface from a file */ |
161 #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) | 167 #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1) |
162 | 168 |