comparison src/video/SDL_pixels_c.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
25 25
26 #include "SDL_blit.h" 26 #include "SDL_blit.h"
27 27
28 /* Pixel format functions */ 28 /* Pixel format functions */
29 extern SDL_PixelFormat *SDL_AllocFormat(int bpp, 29 extern SDL_PixelFormat *SDL_AllocFormat(int bpp,
30 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); 30 Uint32 Rmask, Uint32 Gmask,
31 extern SDL_PixelFormat *SDL_ReallocFormat(SDL_Surface *surface, int bpp, 31 Uint32 Bmask, Uint32 Amask);
32 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); 32 extern void SDL_FormatChanged(SDL_Surface * surface);
33 extern void SDL_FormatChanged(SDL_Surface *surface); 33 extern void SDL_FreeFormat(SDL_PixelFormat * format);
34 extern void SDL_FreeFormat(SDL_PixelFormat *format);
35 34
36 /* Blit mapping functions */ 35 /* Blit mapping functions */
37 extern SDL_BlitMap *SDL_AllocBlitMap(void); 36 extern SDL_BlitMap *SDL_AllocBlitMap(void);
38 extern void SDL_InvalidateMap(SDL_BlitMap *map); 37 extern void SDL_InvalidateMap(SDL_BlitMap * map);
39 extern int SDL_MapSurface (SDL_Surface *src, SDL_Surface *dst); 38 extern int SDL_MapSurface(SDL_Surface * src, SDL_Surface * dst);
40 extern void SDL_FreeBlitMap(SDL_BlitMap *map); 39 extern void SDL_FreeBlitMap(SDL_BlitMap * map);
41 40
42 /* Miscellaneous functions */ 41 /* Miscellaneous functions */
43 extern Uint16 SDL_CalculatePitch(SDL_Surface *surface); 42 extern int SDL_CalculatePitch(SDL_Surface * surface);
44 extern void SDL_DitherColors(SDL_Color *colors, int bpp); 43 extern void SDL_DitherColors(SDL_Color * colors, int bpp);
45 extern Uint8 SDL_FindColor(SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b); 44 extern Uint8 SDL_FindColor(SDL_Palette * pal, Uint8 r, Uint8 g, Uint8 b);
46 extern void SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors); 45 extern void SDL_ApplyGamma(Uint16 * gamma, SDL_Color * colors,
46 SDL_Color * output, int ncolors);
47 /* vi: set ts=4 sw=4 expandtab: */