TGAData

Name

TGAData -- holds the image data

Synopsis

typedef struct _TGAData TGAData;

struct _TGAData {
	tbyte	*img_id;
	tbyte	*cmap;
	tbyte	*img_data;
	tuint32  flags;
}; 
        

Members

img_id

image id data

cmap

color map data

img_data,

actual image data

flags

flags that indicate what data fields should be read or written by the TGARead/WriteImage functions:

TGA_IMAGE_ID
TGA_COLOR_MAP
TGA_IMAGE_DATA

after the functions return the flags indicate what sections actually were read/written.

Additionally flags are:

TGA_RGB - data returned by function, or data passed to function, respectively, is in RGB format
TGA_BGR - same as TGA_RGB but now format is BGR instead of RGB
TGA_RLE_ENCODE - the data should be encoded on write