SDL
2.0
|
Go to the source code of this file.
Functions | |
int | SDL_InitFormat (SDL_PixelFormat *format, Uint32 pixel_format) |
SDL_BlitMap * | SDL_AllocBlitMap (void) |
void | SDL_InvalidateMap (SDL_BlitMap *map) |
int | SDL_MapSurface (SDL_Surface *src, SDL_Surface *dst) |
void | SDL_FreeBlitMap (SDL_BlitMap *map) |
void | SDL_DitherColors (SDL_Color *colors, int bpp) |
Uint8 | SDL_FindColor (SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
SDL_BlitMap* SDL_AllocBlitMap | ( | void | ) |
Definition at line 952 of file SDL_pixels.c.
References map, NULL, SDL_calloc, and SDL_OutOfMemory.
Referenced by SDL_CreateRGBSurfaceWithFormat().
Definition at line 742 of file SDL_pixels.c.
References colors, i, and SDL_ALPHA_OPAQUE.
Referenced by MapNto1().
Definition at line 770 of file SDL_pixels.c.
References SDL_Color::a, SDL_Color::b, SDL_Palette::colors, SDL_Color::g, i, SDL_Palette::ncolors, and SDL_Color::r.
Referenced by Map1to1(), SDL_MapRGB(), and SDL_MapRGBA().
void SDL_FreeBlitMap | ( | SDL_BlitMap * | map | ) |
Definition at line 1077 of file SDL_pixels.c.
References map, SDL_free, and SDL_InvalidateMap().
Referenced by SDL_FreeSurface().
int SDL_InitFormat | ( | SDL_PixelFormat * | format, |
Uint32 | pixel_format | ||
) |
Definition at line 537 of file SDL_pixels.c.
References NULL, SDL_PixelFormatEnumToMasks(), and SDL_zerop.
Referenced by SDL_AllocFormat(), SDL_CreateSurfaceOnStack(), and SDL_SaveBMP_RW().
void SDL_InvalidateMap | ( | SDL_BlitMap * | map | ) |
Definition at line 972 of file SDL_pixels.c.
References map, NULL, SDL_free, and SDL_FreeSurface.
Referenced by SDL_CalculateBlit(), SDL_ConvertSurface(), SDL_FreeBlitMap(), SDL_FreeSurface(), SDL_LowerBlitScaled(), SDL_MapSurface(), SDL_SetColorKey(), SDL_SetSurfaceAlphaMod(), SDL_SetSurfaceBlendMode(), SDL_SetSurfaceColorMod(), SDL_SetSurfacePalette(), SDL_SetSurfaceRLE(), and SDL_UpperBlit().
int SDL_MapSurface | ( | SDL_Surface * | src, |
SDL_Surface * | dst | ||
) |
Definition at line 991 of file SDL_pixels.c.
References SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::format, map, Map1to1(), Map1toN(), MapNto1(), NULL, SDL_PixelFormat::palette, SDL_CalculateBlit(), SDL_InvalidateMap(), SDL_ISPIXELFORMAT_INDEXED, SDL_RLEACCEL, SDL_UnRLESurface(), and SDL_Palette::version.
Referenced by SDL_LowerBlit().