34
34
// Allocate the structure that will hold our eventual image data (must free it!)
35
35
pImageData = (tImageTGA*)malloc(sizeof(tImageTGA));
37
42
// Read in the length in bytes from the header to the pixel data
38
43
fread(&length, sizeof(byte), 1, pFile);