-
Notifications
You must be signed in to change notification settings - Fork 3
TIS File Format
mrfearless edited this page Jan 24, 2019
·
2 revisions
TIS Header v1
Offset | Size | Type | Description |
---|---|---|---|
0 | 4 | CHAR | Signature 'TIS ' |
4 | 4 | CHAR | Version 'V1 ' |
8 | 4 | DWORD | Tile Count |
12 | 4 | DWORD | TileDataEntrySize |
16 | 4 | DWORD | TileDataEntries Offset |
20 | 4 | DWORD | TilePixel |
Note: TileDataEntrySize
- value of 5120
indicates palette based TIS or value of 12
indicates PVRZ based TIS.
Note: TilePixel
- typically is 64
. Tile pixel data size is this value multiplied by itself (64 x64 = 4096
)
Note: TileDataEntries
- points to either an array of TileDataEntry
or TileDataEntryPVRZ
structures depending on the value of TileDataEntrySize
TIS TileDataEntry v1
Offset | Size | Type | Description |
---|---|---|---|
0 | 1024 | RGBQUAD | TilePalette (256 entries) |
1024 | 4096 | BYTE | TilePixel data |
TIS TileDataEntryPVRZ v1
Offset | Size | Type | Description |
---|---|---|---|
0 | 4 | DWORD | PVRZPage |
4 | 4 | DWORD | X Coord |
8 | 4 | DWORD | Y Coord |