Editing GXT
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 18: | Line 18: | ||
The GXT (.gxt) format consists of: | The GXT (.gxt) format consists of: | ||
Header (for single texture): | |||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 58: | Line 32: | ||
| 0x00 || 0x04 || 47 58 54 00 || "GXT " || Magic | | 0x00 || 0x04 || 47 58 54 00 || "GXT " || Magic | ||
|- | |- | ||
| 0x04 || 0x04 || 03 00 00 10 || | | 0x04 || 0x04 || 03 00 00 10 || || Version | ||
|- | |- | ||
| 0x08 || 0x04 || 01 00 00 00 || 1 || Number of textures embedded | | 0x08 || 0x04 || 01 00 00 00 || 1 || Number of textures embedded | ||
|- | |- | ||
| 0x0C || 0x04 || 40 00 00 00 | | 0x0C || 0x04 || 40 00 00 00 || 40 || Offset of the texture data | ||
|- | |- | ||
| | | 0x10 || 0x04 || 00 00 00 80 || || Number of 16 entry palettes | ||
|- | |- | ||
| | | 0x14 || 0x04 || 00 00 00 00 || || Number of 256 entry palettes | ||
|- | |- | ||
| | | 0x18 || 0x08 || 00 ... 00 || 00 || Padding | ||
|- | |- | ||
| | |colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">GXT specification</span> | ||
|- | |- | ||
| || | | 0x20 || 0x04 || 40 00 00 00 || 40 || Offset to the texture data relative to the start of the file | ||
|- | |- | ||
|} | |} | ||