Texture-Format

A texture file contains a header (see below) followed by the payload.

Tag             Bytes       Type
format          1           unsigned char
width           2           unsigned short
height          2           unsigned short
num-mipmaps     1           unsigned char
swizzled        1           unsigned char