zenilib
0.5.3.0
|
Go to the source code of this file.
Functions | |
SDL_BlitMap * | SDL_AllocBlitMap (void) |
int | SDL_CalculatePitch (SDL_Surface *surface) |
void | SDL_DitherColors (SDL_Color *colors, int bpp) |
Uint8 | SDL_FindColor (SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b, Uint8 a) |
void | SDL_FreeBlitMap (SDL_BlitMap *map) |
int | SDL_InitFormat (SDL_PixelFormat *format, Uint32 pixel_format) |
void | SDL_InvalidateMap (SDL_BlitMap *map) |
int | SDL_MapSurface (SDL_Surface *src, SDL_Surface *dst) |
SDL_BlitMap* SDL_AllocBlitMap | ( | void | ) |
Definition at line 952 of file SDL_pixels.c.
References SDL_BlitInfo::a, SDL_BlitInfo::b, SDL_BlitInfo::g, SDL_BlitMap::info, map, NULL, SDL_BlitInfo::r, SDL_calloc(), and SDL_OutOfMemory.
Referenced by SDL_CreateRGBSurface().
int SDL_CalculatePitch | ( | SDL_Surface * | surface | ) |
Definition at line 746 of file SDL_pixels.c.
References SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::BytesPerPixel, SDL_Surface::format, and SDL_Surface::w.
Referenced by SDL_CreateRGBSurface().
Definition at line 718 of file SDL_pixels.c.
References SDL_Color::a, SDL_Color::b, SDL_Color::g, i, SDL_Color::r, 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 SDL_free(), and SDL_InvalidateMap().
Referenced by SDL_FreeSurface().
int SDL_InitFormat | ( | SDL_PixelFormat * | format, |
Uint32 | pixel_format | ||
) |
Definition at line 519 of file SDL_pixels.c.
References SDL_PixelFormat::Aloss, SDL_PixelFormat::Amask, SDL_PixelFormat::Ashift, SDL_PixelFormat::BitsPerPixel, SDL_PixelFormat::Bloss, SDL_PixelFormat::Bmask, SDL_PixelFormat::Bshift, SDL_PixelFormat::BytesPerPixel, for(), SDL_PixelFormat::format, SDL_PixelFormat::Gloss, SDL_PixelFormat::Gmask, SDL_PixelFormat::Gshift, SDL_PixelFormat::next, NULL, SDL_PixelFormat::palette, SDL_PixelFormat::refcount, SDL_PixelFormat::Rloss, SDL_PixelFormat::Rmask, SDL_PixelFormat::Rshift, 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 SDL_BlitMap::dst, SDL_BlitMap::dst_palette_version, SDL_BlitMap::info, NULL, SDL_Surface::refcount, SDL_free(), SDL_FreeSurface(), SDL_BlitMap::src_palette_version, and SDL_BlitInfo::table.
Referenced by SDL_CalculateBlit(), SDL_ConvertSurface(), SDL_FreeBlitMap(), SDL_MapSurface(), SDL_SetColorKey(), SDL_SetSurfaceAlphaMod(), SDL_SetSurfaceBlendMode(), SDL_SetSurfaceColorMod(), and SDL_SetSurfaceRLE().
int SDL_MapSurface | ( | SDL_Surface * | src, |
SDL_Surface * | dst | ||
) |
Definition at line 991 of file SDL_pixels.c.
References SDL_BlitInfo::a, SDL_BlitInfo::b, SDL_PixelFormat::BitsPerPixel, SDL_BlitMap::dst, SDL_BlitMap::dst_palette_version, SDL_Surface::flags, SDL_Surface::format, SDL_PixelFormat::format, SDL_BlitInfo::g, SDL_BlitMap::identity, SDL_BlitMap::info, SDL_Surface::map, map, Map1to1(), Map1toN(), MapNto1(), NULL, SDL_PixelFormat::palette, SDL_BlitInfo::r, SDL_Surface::refcount, SDL_CalculateBlit(), SDL_InvalidateMap(), SDL_ISPIXELFORMAT_INDEXED, SDL_RLEACCEL, SDL_UnRLESurface(), SDL_BlitMap::src_palette_version, SDL_BlitInfo::table, and SDL_Palette::version.
Referenced by SDL_LowerBlit().