benilla-re systems structs docs

TextureMakeFlags

function · gx · primitive

Address
0x449ae0 · 67 bytes, up to 0x449b22
Signature
void __fastcall (uint32_t *out, uint32_t force, uint32_t flags)
Meaning
Writes a flags word, replacing the filter mode and anisotropy bits with the forced values when force is set
Confidence
verified, proof one
Finding
gx/textures#texture-flags-word

Finding: Texture flags word in gx: textures

0x449ae0(out, force, in) writes out = in, except that when force is non-zero the low three bits (the filter mode) are replaced by the global [0x835250]; then, when the resulting mode is 5, bits 9 to 13 are replaced by [0x835254], otherwise by 1. 0x449ac0 and 0x449ad0 store [0x835250] and [0x835254]; their static defaults are 3 and 1. The word is the GxTex flags: bits 0 to 2 filter mode, bit 3 wrap in U, bit 4 wrap in V, bit 6 generate mip maps, bits 9 to 13 maximum anisotropy.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.