pointer to valid TGA structure
pointer to color map data
currently only TGA_RGB or TGA_BGR are supported. If the data you pass to the functions is in RGB format set flags to TGA_RGB, otherwise to TGA_BGR. The write functions (TGAWrite*) always write BGR data to the file (TGAData)