GXT: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Category:Software<noinclude>Category:Main</noinclude> <div style="color: #ffffff; background-color: #475854; border: 1px solid #808000; padding: 5px; {{box-shadow|4px...") |
m (→File format) |
||
Line 24: | Line 24: | ||
| 0x04 || 0x04 || 03 00 00 10 || || Version | | 0x04 || 0x04 || 03 00 00 10 || || Version | ||
|- | |- | ||
| 0x08 || 0x04 || 01 00 00 00 || | | 0x08 || 0x04 || 01 00 00 00 || 1 || Number of textures embedded | ||
|- | |- | ||
| 0x0C || 0x04 || 40 00 00 00 || 40 || Offset of the texture data | | 0x0C || 0x04 || 40 00 00 00 || 40 || Offset of the texture data |
Revision as of 12:05, 24 July 2015
Gxt is a container for storing one or multiple graphic textures for the PSVita and PSP.
File format
The GXT (.gxt) format consists of:
Header (for single texture):
Offset (h) | Size (h) | Example (h) | Value (conversion) | Notes |
GXT header | ||||
0x00 | 0x04 | 47 58 54 00 | "GXT " | Magic |
0x04 | 0x04 | 03 00 00 10 | Version | |
0x08 | 0x04 | 01 00 00 00 | 1 | Number of textures embedded |
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 |
GXT specification | ||||
0x20 | 0x04 | 40 00 00 00 | 40 | Offset to the texture data relative to the start of the file |