UFO: Alien Invasion
|
Image loading and saving functions. More...
Go to the source code of this file.
Functions | |
char const *const * | Img_GetImageTypes (void) |
SDL_Surface * | Img_LoadImage (char const *name) |
Loads the specified image from the game filesystem and populates the provided SDL_Surface. More... | |
void | R_WriteCompressedTGA (qFILE *f, const byte *buffer, int width, int height) |
void | R_WritePNG (qFILE *f, byte *buffer, int width, int height) |
void | R_WriteJPG (qFILE *f, byte *buffer, int width, int height, int quality) |
Image loading and saving functions.
Definition in file images.h.
char const* const* Img_GetImageTypes | ( | void | ) |
SDL_Surface* Img_LoadImage | ( | char const * | name | ) |
Loads the specified image from the game filesystem and populates the provided SDL_Surface.
Image formats are tried in the order they appear in TYPES.
SDL_Surface
after you are done with it. Definition at line 435 of file images.cpp.
References Img_LoadJPG(), and Img_LoadPNG().
Referenced by CalcTextureReflectivity(), R_FindImage(), R_LoadImage(), R_ReloadImageData(), and TEST_F().
Definition at line 101 of file images.cpp.
References FS_Write(), index, OBJZERO, TGA_CHANNELS, and TGA_UNMAP_COMP.
Referenced by R_ScreenShot().
Definition at line 224 of file images.cpp.
References qFILE_s::f.
Referenced by R_ScreenShot().
Definition at line 56 of file images.cpp.
References qFILE_s::f, and i.
Referenced by R_ScreenShot(), and SL_CreatePNGFile().