TXTR (Metroid Prime): Difference between revisions

Jump to navigation Jump to search
no edit summary
>Aruki
m (Parax0 moved page TXTR to TXTR (File Format) without leaving a redirect: Maybe this looks better? :P)
>Aruki
No edit summary
Line 3: Line 3:
__TOC__
__TOC__


== Structure ==
== Format ==


TXTR files contain a very short 12-byte header, followed by the image data.
TXTR files contain a very short 12-byte header, followed by the image data.
Line 29: Line 29:
| 4
| 4
| '''Mipmap count'''
| '''Mipmap count'''
|-
| 0xC
| colspan=2 | End of header
|}
=== Palettes ===
The C4 and C8 image formats contain a palette table after the header, before the image data begins.
{| class="wikitable"
! Offset
! Size
! Description
|-
| 0x0
| 4
| '''Palette format'''. Possible values range from 0 to 2.
|-
| 0x4
| 2
| Always 0x1 in C4, 0x100 in C8
|-
| 0x6
| 2
| Always 0x10 in C4, 0x1 in C8
|-
| 0x8
| Varies
| '''Palette colors'''. 16-bit color values; 16 colors in C4, 256 in C8.
|-
| colspan=3 | End of palette table; image data begins immediately after
|}
|}


Anonymous user

Navigation menu