Name: Anonymous 2010-12-26 3:20
`class` macro automatically generates everything
class Tga
idLength = U1 // 00h Size of Image ID field
cmapType = U1 // 01h Color map type
imageType = U1 // 02h Image type code
cmapStart = U2 // 03h Color map origin
cmapLength = U2 // 05h Color map length
cmapDepth = U1 // 07h Depth of color map entries
xOffset = U2 // 08h X origin of image
yOffset = U2 // 0Ah Y origin of image
width = U2 // 0Ch Width of image
height = U2 // 0Eh Heigth of image
bpp = U1 // 10h Image pixel size
descriptor = U1 // 11h Image descriptor byte
idField = idLength++U1
cmap = cmapLength++U1
bmap = (width*height*bpp%8)++U1