TGAReadColorMap

Name

TGAReadColorMap -- read color map

Synopsis

int TGAReadColorMap(TGA* tga, tbyte**cmap, tuint32 flags);

Arguments

tga

pointer to valid TGA structure

cmap

reference to a NULL pointer that will hold the color map data

flags

flags that control the functions operations (currently only TGA_RGB or TGA_BGR TGAData)

Description

It returns TGA_CMAP_SIZE() on success.

Use TGAReadImage() instead.