Image loading and saving functions. More...
#include "ufotypes.h"
#include "byte.h"
#include "../common/filesys.h"
#include <SDL_image.h>
Go to the source code of this file.
Functions | |
const char ** | Img_GetImageTypes (void) |
qboolean | Img_LoadImage (const char *name, SDL_Surface **surf) |
Loads the specified image from the game filesystem and populates the provided SDL_Surface. | |
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.
const char** Img_GetImageTypes | ( | void | ) |
qboolean Img_LoadImage | ( | const char * | name, | |
SDL_Surface ** | surf | |||
) |
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 338 of file images.c.
References i, IMAGE_TYPES, Img_LoadTypedImage(), qfalse, and qtrue.
Referenced by CalcTextureReflectivity(), R_FindImage(), and R_LoadImage().
Definition at line 126 of file images.c.
References byte, FS_Write(), header, TGA_CHANNELS, and TGA_UNMAP_COMP.
Referenced by R_ScreenShot().
Definition at line 252 of file images.c.
References byte, qFILE_s::f, and qtrue.
Referenced by R_ScreenShot().
Definition at line 80 of file images.c.
References qFILE_s::f, and i.
Referenced by R_ScreenShot().