|
OpenRaider
0.1.4-dev
Open Source Tomb Raider Game Engine implementation
|
PCX image reader. More...
Go to the source code of this file.
Functions | |
| int | pcxCheck (const char *filename) |
| Check if a file is a valid PCX image. More... | |
| int | pcxLoad (const char *filename, unsigned char **image, unsigned int *width, unsigned int *height, ColorMode *mode, unsigned int *bpp) |
| Load a PCX image file into a buffer. More... | |
PCX image reader.
Based on official technical documentation from ZSoft: http://bespin.org/~qz/pc-gpe/pcx.txt
Definition in file pcx.cpp.
| int pcxCheck | ( | const char * | filename | ) |
| int pcxLoad | ( | const char * | filename, |
| unsigned char ** | image, | ||
| unsigned int * | width, | ||
| unsigned int * | height, | ||
| ColorMode * | mode, | ||
| unsigned int * | bpp | ||
| ) |
Load a PCX image file into a buffer.
| filename | path of file to read |
| image | place where allocated buffer of size (width * height * (bpp / 8)) will be allocated |
| width | place where image width will be stored |
| height | place where image height will be stored |
| mode | place where Color Mode of image will be stored |
| bpp | place where pixel width will be stored (8, 24, 32) |
1.8.9.1