Open source remastering of the Freespace 2 engine
ddsutils.cpp File Reference
#include "ddsutils/ddsutils.h"
#include "cfile/cfile.h"
#include "osapi/osregistry.h"

Go to the source code of this file.


int dds_read_header (const char *filename, CFILE *img_cfp, int *width, int *height, int *bpp, int *compression_type, int *levels, int *size, ubyte *palette)
int dds_read_bitmap (const char *filename, ubyte *data, ubyte *bpp, int cf_type)
void dds_save_image (int width, int height, int bpp, int num_mipmaps, ubyte *data, int cubemap, const char *filename)
const char * dds_error_string (int code)


int Texture_compression_available = 0
int Use_compressed_textures = 0

Function Documentation

const char* dds_error_string ( int  code)

Definition at line 467 of file ddsutils.cpp.

int dds_read_bitmap ( const char *  filename,
ubyte data,
ubyte bpp,
int  cf_type 

Definition at line 275 of file ddsutils.cpp.

int dds_read_header ( const char *  filename,
CFILE img_cfp,
int width,
int height,
int bpp,
int compression_type,
int levels,
int size,
ubyte palette 

Definition at line 30 of file ddsutils.cpp.

void dds_save_image ( int  width,
int  height,
int  bpp,
int  num_mipmaps,
ubyte data,
int  cubemap,
const char *  filename 

Definition at line 324 of file ddsutils.cpp.

Variable Documentation

int Texture_compression_available = 0

Definition at line 19 of file ddsutils.cpp.

int Use_compressed_textures = 0

Definition at line 20 of file ddsutils.cpp.