Macros

Name

Macros -- 

Synopsis

#define TGA_HEADER_SIZE();

#define TGA_CMAP_SIZE( tga);

#define TGA_CMAP_OFF( tga);

#define TGA_IMG_DATA_SIZE( tga);

#define TGA_IMG_DATA_OFF( tga);

#define TGA_SCANLINE_SIZE( tga);

#define TGA_ERROR( tga, code);

Arguments

tga

pointer to valid TGA structure

code

libtga error code

Description

TGA_HEADER_SIZE

is defined as 18

TGA_CMAP_SIZE

returns the total length of the color map in bytes

TGA_CMAP_OFF

returns the start offset of the color map data

TGA_IMG_DATA_SIZE

returns the total length of the image data in bytes

TGA_IMG_DATA_OFF

returns the start offset of the image data

TGA_SCANLINE_SIZE

returns the length of a single scanline in bytes

TGA_ERROR

see Chapter 4