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 flags
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

◆ flags

uint32_t s_T2FSDataMaterial::flags

◆ 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 which are unused on PC and probably (need to look into that) are used for N64 data.

See 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: