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 16: | Line 16: | ||
== File format == | == File format == | ||
The GXT (.gxt) format consists of: | The GXT (.gxt) format (older version might vary) consists of: | ||
Header (for single texture): | |||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
Line 62: | Line 36: | ||
| 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/ header size | ||
|- | |- | ||
| 0x10 || 0x04 || 00 00 | | 0x10 || 0x04 || 80 00 00 00 || 80 || Total size of the Textures | ||
|- | |- | ||
| 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes | | 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes | ||
|- | |- | ||
| 0x18 || 0x04 || 00 00 00 00 || 0 || Number of 256 entry palettes | | 0x18 || 0x04 || 00 00 00 00 || 0 || Number of 256 entry palettes | ||
|- | |- | ||
| 0x1C || 0x04 || 00 00 00 00 || 0 || Padding | | 0x1C || 0x04 || 00 00 00 00 || 0 || Padding | ||
|- | |- | ||
|colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">GXT specification per texture</span> | |colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">GXT specification per texture?</span> | ||
|- | |- | ||
| 0x20 || 0x04 || 40 00 00 00 || | | 0x20 || 0x04 || 40 00 00 00 || 40 || Offset of the single texture data | ||
|- | |- | ||
| 0x24 || 0x04 || 00 00 | | 0x24 || 0x04 || 80 00 00 00 || 80 || Size of the single texture data. | ||
|- | |- | ||
| 0x28 || 0x04 || FF FF FF FF || - || Index of the palette | | 0x28 || 0x04 || FF FF FF FF || - || Index of the palette | ||
Line 84: | Line 58: | ||
| 0x30 || 0x04 || 00 00 00 00 || - || Texture Type | | 0x30 || 0x04 || 00 00 00 00 || - || Texture Type | ||
|- | |- | ||
| 0x34 || 0x04 || | | 0x34 || 0x04 || - || - || Texture format | ||
|- | |- | ||
| 0x38 || 0x02 || | | 0x38 || 0x02 || - || - || Width | ||
|- | |- | ||
| 0x3A || 0x02 || | | 0x3A || 0x02 || - || - || Height | ||
|- | |- | ||
| 0x3C || 0x02 || - || - || Mipmaps | | 0x3C || 0x02 || - || - || Mipmaps | ||
Line 95: | Line 69: | ||
|- | |- | ||
|} | |} | ||