2001-04-26 16:45:43 +00:00
|
|
|
/*
|
|
|
|
SDL - Simple DirectMedia Layer
|
2010-01-24 21:10:53 +00:00
|
|
|
Copyright (C) 1997-2010 Sam Lantinga
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2006-02-01 06:32:25 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2001-04-26 16:45:43 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2006-02-01 06:32:25 +00:00
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2006-02-01 06:32:25 +00:00
|
|
|
Lesser General Public License for more details.
|
2001-04-26 16:45:43 +00:00
|
|
|
|
2006-02-01 06:32:25 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
Sam Lantinga
|
2001-12-14 12:38:15 +00:00
|
|
|
slouken@libsdl.org
|
2001-04-26 16:45:43 +00:00
|
|
|
*/
|
2006-02-21 08:46:50 +00:00
|
|
|
#include "SDL_config.h"
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
/* Useful functions and variables from SDL_pixel.c */
|
|
|
|
|
|
|
|
#include "SDL_blit.h"
|
|
|
|
|
|
|
|
/* Pixel format functions */
|
|
|
|
extern SDL_PixelFormat *SDL_AllocFormat(int bpp,
|
2006-07-10 21:04:37 +00:00
|
|
|
Uint32 Rmask, Uint32 Gmask,
|
|
|
|
Uint32 Bmask, Uint32 Amask);
|
2009-01-04 17:14:27 +00:00
|
|
|
extern SDL_PixelFormat *SDL_InitFormat(SDL_PixelFormat * format, int bpp,
|
|
|
|
Uint32 Rmask, Uint32 Gmask,
|
|
|
|
Uint32 Bmask, Uint32 Amask);
|
2006-07-10 21:04:37 +00:00
|
|
|
extern void SDL_FormatChanged(SDL_Surface * surface);
|
|
|
|
extern void SDL_FreeFormat(SDL_PixelFormat * format);
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
/* Blit mapping functions */
|
|
|
|
extern SDL_BlitMap *SDL_AllocBlitMap(void);
|
2006-07-10 21:04:37 +00:00
|
|
|
extern void SDL_InvalidateMap(SDL_BlitMap * map);
|
|
|
|
extern int SDL_MapSurface(SDL_Surface * src, SDL_Surface * dst);
|
|
|
|
extern void SDL_FreeBlitMap(SDL_BlitMap * map);
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
/* Miscellaneous functions */
|
2006-07-10 21:04:37 +00:00
|
|
|
extern int SDL_CalculatePitch(SDL_Surface * surface);
|
|
|
|
extern void SDL_DitherColors(SDL_Color * colors, int bpp);
|
|
|
|
extern Uint8 SDL_FindColor(SDL_Palette * pal, Uint8 r, Uint8 g, Uint8 b);
|
2011-02-02 14:34:54 -08:00
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|