libnds
Loading...
Searching...
No Matches
Functions
pcx.h File Reference

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

Functions

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

Detailed Description

A simple 256 color pcx file loader.

Function Documentation

◆ loadPCX()

bool 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
true on success, false on failure.