typedef struct _TGA TGA;
struct _TGA {
FILE *fd;
tlong off;
int last;
TGAHeader hdr;
TGAErrorProc error;
}; |
file descriptor (stream)
current offset in file
error code of the last error / warning that occured (Chapter 4)
image header
pointer to user-defined error handler