-
Notifications
You must be signed in to change notification settings - Fork 1
File Formats
Raresh Nistor edited this page Dec 17, 2019
·
1 revision
The raw image data for each pixel without palette context. Useful for rendering on older hardware.
Offset | Size (in bytes) | Contents | Description |
---|---|---|---|
0x00 |
0x4 |
"TGRV" ( 0x54 0x47 0x52 0x56 ) |
The file's magic number |
0x04 |
0x2 |
little endian 16-bit integer | Bitmap width |
0x06 |
0x2 |
little endian 16-bit integer | Bitmap height |
0x08 |
Width × Height | 8-bit integers | Bytes representing each pixel colour |
The palette data stored in RGB formats. Useful for sharing a common palette across multiple bitmaps.
Offset | Size (in bytes) | Contents | Description |
---|---|---|---|
0x00 |
0x4 |
"TGRP" ( 0x54 0x47 0x52 0x50 ) |
The file's magic number |
0x04 + 3 × i
|
0x3 |
3 × 8-bit integers | Bytes for Red, Green and Blue components |
File used combing the bitmap and palette data. Could be used in artwork creation and should be able to be split into separate *.vad and *.vap files.
Offset | Size (in bytes) | Contents | Description |
---|---|---|---|
0x00 |
0x4 |
"TGRC" ( 0x54 0x47 0x52 0x43 ) |
The file's magic number |
0x04 |
0x2 |
little endian 16-bit integer | Bitmap width |
0x06 |
0x2 |
little endian 16-bit integer | Bitmap height |
0x08 |
0x1 |
8-bit integer | Colours in included palette |
0x08 |
Width × Height | 8-bit integers | Bytes representing each pixel colour |