2
0
mirror of https://github.com/dpethes/rerogue.git synced 2025-06-07 18:58:32 +02:00
rerogue/doc/file_hmt_spec.txt
2014-10-20 08:19:57 +02:00

41 lines
819 B
Plaintext

4B material entry count MC
4B offset after material entries / offset to textures
MC * material entry (36B)
{
2B int type:
1=sky, trooper
2=mat
2B int 0, 1 (trooper, mat2)
4B float (misc)
4B float (1.0)
4B int zero
4B int 0x0A
16B name
}
4B int texcount Tc
TC * texture entry 52B
{
4B int pixel offset
28B zero
4B int palette offset, 0 = no palette
4B int texname offset
2B int width
2B int height
8B texture format {
1B int ? 0x01
1B int ?
1B subtype:
-0 - palette 16x3B RGB, 4bit per pixel
-1 - 256x3B palette RGB, 8bit per pixel
-4 - greyscale, 4bpp
1B int ? 0, 0x40, 0x80
4B RGBA transparent color?
}
}
TC * texture data
{
16B texname = material name
xB RGB palette
xB pixels/samples
}