comparison include/SDL_surface.h @ 3103:7be21a78777e

Added SDL_GetColorKey()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 03 Apr 2009 13:27:33 +0000
parents 69ab1117dd3b
children 710139a1692d
comparison
equal deleted inserted replaced
3102:73fe1f73a56f 3103:7be21a78777e
196 * 196 *
197 * \return 0 on success, or -1 if the surface is not valid 197 * \return 0 on success, or -1 if the surface is not valid
198 */ 198 */
199 extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface, 199 extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
200 Uint32 flag, Uint32 key); 200 Uint32 flag, Uint32 key);
201
202 /*
203 * \fn int SDL_GetColorKey(SDL_Surface *surface, Uint32 *key)
204 *
205 * \brief Sets the color key (transparent pixel) in a blittable surface.
206 *
207 * \param surface The surface to update
208 * \param key A pointer filled in with the transparent pixel in the native surface format
209 *
210 * \return 0 on success, or -1 if the surface is not valid or colorkey is not enabled.
211 */
212 extern DECLSPEC int SDLCALL SDL_GetColorKey(SDL_Surface * surface,
213 Uint32 * key);
201 214
202 /** 215 /**
203 * \fn int SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b) 216 * \fn int SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b)
204 * 217 *
205 * \brief Set an additional color value used in blit operations 218 * \brief Set an additional color value used in blit operations