From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:TPL texture palette" |
|---|
| claim | "A TPL image header is 0x24 bytes: u16 height, u16 width, u32 GX texture format, u32 data offset, u32 wrapS, u32 wrapT, u32 minFilter, u32 magFilter, f32 LODBias, u8 edgeLODEnable, u8 minLOD, u8 maxLOD, u8 unpacked." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:TPL texture palette" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TPLHeader" |
|---|
| size | 36 |
|---|
| endianness | "big" |
|---|
| fields | | offset | "0x00" |
|---|
| name | "height" |
|---|
| type | "u16" |
|---|
|
| offset | "0x02" |
|---|
| name | "width" |
|---|
| type | "u16" |
|---|
|
| offset | "0x04" |
|---|
| name | "format" |
|---|
| type | "u32" |
|---|
|
| offset | "0x08" |
|---|
| name | "data" |
|---|
| type | "u32" |
|---|
|
| offset | "0x0C" |
|---|
| name | "wrapS" |
|---|
| type | "u32" |
|---|
|
| offset | "0x10" |
|---|
| name | "wrapT" |
|---|
| type | "u32" |
|---|
|
| offset | "0x14" |
|---|
| name | "minFilter" |
|---|
| type | "u32" |
|---|
|
| offset | "0x18" |
|---|
| name | "magFilter" |
|---|
| type | "u32" |
|---|
|
| offset | "0x1C" |
|---|
| name | "LODBias" |
|---|
| type | "f32" |
|---|
|
| offset | "0x20" |
|---|
| name | "edgeLODEnable" |
|---|
| type | "u8" |
|---|
|
| offset | "0x21" |
|---|
| name | "minLOD" |
|---|
| type | "u8" |
|---|
|
| offset | "0x22" |
|---|
| name | "maxLOD" |
|---|
| type | "u8" |
|---|
|
| offset | "0x23" |
|---|
| name | "unpacked" |
|---|
| type | "u8" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "typedef struct TPLHeader; the size 0x24 is the sum of the field sizes" |
|---|
| repo | "https://github.com/zeldaret/tp" |
|---|
| commit | "c8fa8c9e2aab72cf4e5db0e5d1c84a9ea6ee6eb0" |
|---|
| path | "libs/revolution/include/revolution/tpl.h" |
|---|
| lines | "18-32" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TPLHeader" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T00:24:23.352Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:30:47.793Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read zeldaret/tp tpl.h TPLHeader at c8fa8c9: u16 height,width; u32 format; data; 4 u32 wrap/filter; f32 LODBias; 4 u8 = 0x24 (the data pointer is a u32 offset in the file)." |
|---|
|
|
|---|