Mercurial > sdl-ios-xcode
diff include/SDL_surface.h @ 3434:147d6ef5be03
Added a utility function to convert blocks of pixels
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 15 Nov 2009 09:21:46 +0000 |
parents | d3baf5ac4e37 |
children | 0267b8b1595c |
line wrap: on
line diff
--- a/include/SDL_surface.h Sun Nov 15 08:01:34 2009 +0000 +++ b/include/SDL_surface.h Sun Nov 15 09:21:46 2009 +0000 @@ -387,6 +387,15 @@ (SDL_Surface * src, SDL_PixelFormat * fmt, Uint32 flags); /** + * \brief Copy a block of pixels of one format to another format + */ +extern DECLSPEC int SDLCALL SDL_ConvertPixels(int width, int height, + Uint32 src_format, + const void * src, int src_pitch, + Uint32 dst_format, + void * dst, int dst_pitch); + +/** * Draws a point with \c color. * * The color should be a pixel of the format used by the surface, and