Data Structures | |
struct | pcx_t |
A ZSoft PC Paintbrush (PCX) header. More... | |
Functions | |
pcx_t * | EncodePCX (byte *data, int width, int height, int rowbytes, byte *palette, qboolean flip, int *length) |
Convert paletted image data to PCX format. More... | |
struct tex_s * | LoadPCX (QFile *f, qboolean convert, byte *pal) |
Load a texture from a PCX file. More... | |
pcx_t* EncodePCX | ( | byte * | data, |
int | width, | ||
int | height, | ||
int | rowbytes, | ||
byte * | palette, | ||
qboolean | flip, | ||
int * | length | ||
) |
Convert paletted image data to PCX format.
data | A pointer to the buffer containing the source image | |
width | The width, in pixels, of the source image | |
height | The height, in pixels, of the source image | |
rowbytes | The number of bytes in a row of an image (usually the same as the width) | |
palette | The palette in use for the texture. | |
flip | If true, flip the order of lines output. | |
[out] | length | The length of the encoded PCX data. |
Load a texture from a PCX file.
f | The file to read the texture from |
convert | If true, the texture is converted to RGB on load |
pal | The palette to apply during conversion |