LibT2FS 0.1
C API for accessing TEngine data in memory.
Loading...
Searching...
No Matches
s_t2fsDataMaterial Struct Reference

#include <models.h>

Data Fields

uint32_t textureId
uint32_t unk_u32_1
uint32_t unk_u32_2
t2fsDataColorRGBA8 fgColor
t2fsDataColorRGBA8 bgColor
uint16_t sc
uint16_t tc

Detailed Description

find dumps/seeds/0/ | grep -P "seeds/0/([0-9]+)/1/2/([0-9]+)/([0-9]+)/0/data" | xargs -n1 xxd -c24

Field Documentation

◆ textureId

uint32_t s_t2fsDataMaterial::textureId

◆ unk_u32_1

uint32_t s_t2fsDataMaterial::unk_u32_1

◆ unk_u32_2

uint32_t s_t2fsDataMaterial::unk_u32_2

◆ fgColor

t2fsDataColorRGBA8 s_t2fsDataMaterial::fgColor

◆ bgColor

t2fsDataColorRGBA8 s_t2fsDataMaterial::bgColor

◆ sc

uint16_t s_t2fsDataMaterial::sc

these last two are either set to:

  • 0x0000
  • 0x0008
  • 0x0010
  • 0x0020
  • 0x0040

When textureId is 0xFFFFFFFF then both are set to 0x0000, so maybe dimensions?

more likely these are sc and tc: https://ultra64.ca/files/documentation/online-manuals/functions_reference_manual_2.0i/gsp/gSPTexture.html

◆ tc

uint16_t s_t2fsDataMaterial::tc

The documentation for this struct was generated from the following file: