#include "flGlobal.h"
#include <stdlib.h>
#include <string.h>
#include <pspgu.h>
Go to the source code of this file.
Classes | |
struct | pcxFileHeader |
Functions | |
Texture * | texLoadPCX (char *inPath) |
Loads a pcx image into a Texture struct. | |
bool | texSavePCX (Texture *inTex, char *inPath) |
Saves a pcx image from a Texture struct. |
Texture* texLoadPCX | ( | char * | inPath | ) |
Loads a pcx image into a Texture struct.
inPath | Path to the pcx image in memory or file. |
Definition at line 39 of file flTexturePCX.c.
References pcxFileHeader::bpp, pcxFileHeader::bytesPerLine, pcxFileHeader::colorPlanes, debugError, pcxFileHeader::encoding, FILE_MODE_BINARY, FILE_MODE_READ, fileClose(), fileOpen(), fileRead(), pcxFileHeader::filler, pcxFileHeader::horizontalDPI, pcxFileHeader::hScrSize, pcxFileHeader::manufacturer, memQalloc, NULL, pcxFileHeader::palette, pcxFileHeader::paletteType, pcxFileHeader::reserved, pcxFileHeader::version, pcxFileHeader::verticalDPI, pcxFileHeader::vScrSize, pcxFileHeader::xMax, pcxFileHeader::xMin, pcxFileHeader::yMax, and pcxFileHeader::yMin.
Referenced by texLoad().
Saves a pcx image from a Texture struct.
inTex | The texture to save as a pcx. | |
inPath | Path to the file to which the pcx image will be written. |
Definition at line 260 of file flTexturePCX.c.
References debugWarning.
Referenced by texSave().