Added a utility function to convert blocks of pixels

This commit is contained in:
Sam Lantinga
2009-11-15 09:21:46 +00:00
parent 08efca1a63
commit c12a32c64b
2 changed files with 112 additions and 0 deletions

View File

@@ -386,6 +386,15 @@ extern DECLSPEC void SDLCALL SDL_GetClipRect(SDL_Surface * surface,
extern DECLSPEC SDL_Surface *SDLCALL SDL_ConvertSurface
(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.
*