Open source remastering of the Freespace 2 engine
pcxutils.h File Reference
#include "globalincs/pstypes.h"
#include "cfile/cfile.h"

Go to the source code of this file.


#define PCX_ERROR_NONE   0
#define PCX_ERROR_MEMORY   7


int pcx_read_header (const char *filename, CFILE *img_cfp=NULL, int *w=0, int *h=0, int *bpp=0, ubyte *pal=NULL)
int pcx_read_bitmap (const char *filename, ubyte *org_data, ubyte *pal, int byte_size, int aabitmap=0, int nondark=0, int cf_type=CF_TYPE_ANY)
int pcx_write_bitmap (const char *filename, int w, int h, ubyte **row_ptrs, ubyte *palette)

Macro Definition Documentation

#define PCX_ERROR_MEMORY   7

Definition at line 32 of file pcxutils.h.


Definition at line 27 of file pcxutils.h.


Definition at line 30 of file pcxutils.h.

#define PCX_ERROR_NONE   0

Definition at line 25 of file pcxutils.h.


Definition at line 26 of file pcxutils.h.


Definition at line 29 of file pcxutils.h.


Definition at line 31 of file pcxutils.h.


Definition at line 28 of file pcxutils.h.

Function Documentation

int pcx_read_bitmap ( const char *  filename,
ubyte org_data,
ubyte pal,
int  byte_size,
int  aabitmap = 0,
int  nondark = 0,
int  cf_type = CF_TYPE_ANY 

Definition at line 217 of file pcxutils.cpp.

int pcx_read_header ( const char *  filename,
CFILE img_cfp = NULL,
int w = 0,
int h = 0,
int bpp = 0,
ubyte pal = NULL 

Definition at line 40 of file pcxutils.cpp.

int pcx_write_bitmap ( const char *  filename,
int  w,
int  h,
ubyte **  row_ptrs,
ubyte palette 

Definition at line 455 of file pcxutils.cpp.