Mercurial > sdl-ios-xcode
comparison src/video/SDL_pixels_c.h @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | d910939febfa |
children | 4da1ee79c9af |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
24 /* Useful functions and variables from SDL_pixel.c */ | 24 /* Useful functions and variables from SDL_pixel.c */ |
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 SDL_PixelFormat *SDL_ReallocFormat (SDL_Surface * surface, int bpp, |
33 extern void SDL_FormatChanged(SDL_Surface *surface); | 33 Uint32 Rmask, Uint32 Gmask, |
34 extern void SDL_FreeFormat(SDL_PixelFormat *format); | 34 Uint32 Bmask, Uint32 Amask); |
35 extern void SDL_FormatChanged (SDL_Surface * surface); | |
36 extern void SDL_FreeFormat (SDL_PixelFormat * format); | |
35 | 37 |
36 /* Blit mapping functions */ | 38 /* Blit mapping functions */ |
37 extern SDL_BlitMap *SDL_AllocBlitMap(void); | 39 extern SDL_BlitMap *SDL_AllocBlitMap (void); |
38 extern void SDL_InvalidateMap(SDL_BlitMap *map); | 40 extern void SDL_InvalidateMap (SDL_BlitMap * map); |
39 extern int SDL_MapSurface (SDL_Surface *src, SDL_Surface *dst); | 41 extern int SDL_MapSurface (SDL_Surface * src, SDL_Surface * dst); |
40 extern void SDL_FreeBlitMap(SDL_BlitMap *map); | 42 extern void SDL_FreeBlitMap (SDL_BlitMap * map); |
41 | 43 |
42 /* Miscellaneous functions */ | 44 /* Miscellaneous functions */ |
43 extern Uint16 SDL_CalculatePitch(SDL_Surface *surface); | 45 extern Uint16 SDL_CalculatePitch (SDL_Surface * surface); |
44 extern void SDL_DitherColors(SDL_Color *colors, int bpp); | 46 extern void SDL_DitherColors (SDL_Color * colors, int bpp); |
45 extern Uint8 SDL_FindColor(SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b); | 47 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); | 48 extern void SDL_ApplyGamma (Uint16 * gamma, SDL_Color * colors, |
49 SDL_Color * output, int ncolors); | |
50 /* vi: set ts=4 sw=4 expandtab: */ |