typedef struct _TGAData TGAData; struct _TGAData { tbyte *img_id; tbyte *cmap; tbyte *img_data; tuint32 flags; }; |
image id data
color map data
actual image data
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 |
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 |