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

43 lines
944 B
Plaintext

4B material entry count MC
4B offset after material entries / offset to textures
MC * material entry (36B)
{
2B int material/texture type:
1 - material with texture
2 - material without texture
2B int texture index
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 : always 1?
1B int : bits per sample?
1B int : subtype:
-0 - palette 16x3B RGB, 4bit per pixel
-1 - 256x3B palette RGB, 8bit per pixel
-3 - RGBA 32bpp
-4 - greyscale, 4bpp
-5 - grayscale, 8bpp
1B int ? 0, 0x40, 0x80
4B RGBA transparent color?
}
}
TC * texture data
{
16B texname = material name
xB RGB palette
xB pixels/samples
}