benilla-re systems structs docs

CGxDevice::XformSetIdentity

function · gx · primitive

Address
0x5927f0 · 28 bytes, up to 0x59280b
Signature
void __thiscall (CGxDevice *this, uint32_t index)
Meaning
Loads the identity into the matrix stack of a transform slot through 0x591370
Confidence
verified, proof one
Finding
gx/renderstate#texture-transform-kinds

Finding: Texture transform kinds in gx: render state

The device sets a stage's transform from the state 0x37 + stage, its kind. Kind 0 passes the stage's mode matrix to SetTransform and sets TEXTURETRANSFORMFLAGS to 0 when the matrix's level is marked identity, else 3 (D3DTTFF_COUNT3: three coordinates out, of which a 2D texture reads u and v). Kinds 1 and 2 combine the stage's user matrix, which 0x58b240 stores at +0xfd0 + 0x118·stage, with the mode matrix and set the flags 3 and 0x103 (COUNT3 | PROJECTED, which divides by the third). Kind 0 never reads the user matrix.

The derivation is in the doc.

Callers 1

Callees 1

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