Editing GXT

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:


{| class="wikitable" style="text-align: center;"
Header (for single texture):
|-
! style="background-color:#475854; color:#FFFFFF;" |'''File Layout'''
|-
| style="background-color:lightblue; color:#000000;" |'''GXT Header'''
|-
| style="background-color:lightblue; color:#000000;" |'''GXT Specification Texture 1 info'''
|-
| style="background-color:lightblue; color:#000000;" |'''GXT Specification Texture 2 info'''
|-
| style="background-color:lightblue; color:#000000;" |'''...'''
|-
| style="background-color:lightblue; color:#000000;" |'''Texture 1'''
|-
| style="background-color:lightblue; color:#000000;" |'''Padding'''
|-
| style="background-color:lightblue; color:#000000;" |'''Texture 2'''
|-
| style="background-color:lightblue; color:#000000;" |'''...'''
|-
| style="background-color:lightblue; color:#000000;" |'''Palette P4'''
|-
| style="background-color:lightblue; color:#000000;" |'''Palette P8'''
|-
|}
 
*For a single texture:


{| class="wikitable" style="text-align: center;"
{| class="wikitable" style="text-align: center;"
Line 66: Line 40:
| 0x10 || 0x04 || 00 00 02 00 || 0x20000 || Total size of the Textures
| 0x10 || 0x04 || 00 00 02 00 || 0x20000 || Total size of the Textures
|-
|-
| 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes (P4)
| 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes
|-
|-
| 0x18 || 0x04 || 00 00 00 00 || 0 || Number of 256 entry palettes (P8)
| 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 || 0x40 || Offset of the single texture data
| 0x20 || 0x04 || 40 00 00 00 || 0x40 || Offset of the single texture data
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Template used on this page: