TGA

Name

TGA -- holds library information

Synopsis

typedef struct _TGA TGA;

struct _TGA {
	FILE		*fd;
	tlong		off;
	int		last;
	TGAHeader	hdr;
	TGAErrorProc	error;
}; 

Members

fd

file descriptor (stream)

off

current offset in file

last

error code of the last error / warning that occured (Chapter 4)

hdr

image header

error

pointer to user-defined error handler