libnds
Functions
pcx.h File Reference

A simple 256 color pcx file loader. More...

Functions

int loadPCX (const unsigned char *pcx, sImage *image)
 Loads an image structure with data from PCX formatted data. More...
 

Detailed Description

A simple 256 color pcx file loader.

Function Documentation

int loadPCX ( const unsigned char *  pcx,
sImage image 
)

Loads an image structure with data from PCX formatted data.

Parameters
pcxa pointer to the pcx file loaded into memory
imagethe image structure to fill in (the loader will allocate room for the palette and pixel data)
Returns
1 on success, 0 on failure