include/SDL_surface.h
changeset 2807 365fe1a2aad5
parent 2275 12ea0fdc0df2
child 2828 7e5ff6cd05bf
equal deleted inserted replaced
2806:938aa47f903a 2807:365fe1a2aad5
    99  * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
    99  * If the depth is 4 or 8 bits, an empty palette is allocated for the surface.
   100  * If the depth is greater than 8 bits, the pixel format is set using the
   100  * If the depth is greater than 8 bits, the pixel format is set using the
   101  * flags '[RGB]mask'.
   101  * flags '[RGB]mask'.
   102  * If the function runs out of memory, it will return NULL.
   102  * If the function runs out of memory, it will return NULL.
   103  *
   103  *
   104  * The 'flags' tell what kind of surface to create.
   104  * The 'flags' are obsolete and should be set to 0.
   105  * SDL_SRCCOLORKEY indicates that the surface will be used for colorkey blits.
       
   106  * SDL_SRCALPHA means that the surface will be used for alpha blits.
       
   107  */
   105  */
   108 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
   106 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurface
   109     (Uint32 flags, int width, int height, int depth,
   107     (Uint32 flags, int width, int height, int depth,
   110      Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
   108      Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
   111 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
   109 extern DECLSPEC SDL_Surface *SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,