include/SDL_surface.h
changeset 6257 4b6e961362fb
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
equal deleted inserted replaced
6256:1d905b13b102 6257:4b6e961362fb
    49  *  
    49  *  
    50  *  \internal
    50  *  \internal
    51  *  Used internally (read-only).
    51  *  Used internally (read-only).
    52  */
    52  */
    53 /*@{*/
    53 /*@{*/
       
    54 #define SDL_SWSURFACE       0           /**< Just here for compatibility */
    54 #define SDL_PREALLOC        0x00000001  /**< Surface uses preallocated memory */
    55 #define SDL_PREALLOC        0x00000001  /**< Surface uses preallocated memory */
    55 #define SDL_RLEACCEL        0x00000002  /**< Surface is RLE encoded */
    56 #define SDL_RLEACCEL        0x00000002  /**< Surface is RLE encoded */
    56 #define SDL_DONTFREE        0x00000004  /**< Surface is referenced internally */
    57 #define SDL_DONTFREE        0x00000004  /**< Surface is referenced internally */
    57 /*@}*//*Surface flags*/
    58 /*@}*//*Surface flags*/
    58 
    59 
   206 
   207 
   207 /**
   208 /**
   208  *  \brief Sets the color key (transparent pixel) in a blittable surface.
   209  *  \brief Sets the color key (transparent pixel) in a blittable surface.
   209  *  
   210  *  
   210  *  \param surface The surface to update
   211  *  \param surface The surface to update
   211  *  \param flag Non-zero to enable colorkey and 0 to disable colorkey 
   212  *  \param flag Non-zero to enable colorkey and 0 to disable colorkey
   212  *  \param key The transparent pixel in the native surface format
   213  *  \param key The transparent pixel in the native surface format
   213  *  
   214  *  
   214  *  \return 0 on success, or -1 if the surface is not valid
   215  *  \return 0 on success, or -1 if the surface is not valid
       
   216  *
       
   217  *  You can pass SDL_RLEACCEL to enable RLE accelerated blits.
   215  */
   218  */
   216 extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
   219 extern DECLSPEC int SDLCALL SDL_SetColorKey(SDL_Surface * surface,
   217                                             int flag, Uint32 key);
   220                                             int flag, Uint32 key);
   218 
   221 
   219 /**
   222 /**