benilla-re systems structs docs

CGxDevice::ResetRenderStates

function · gx · orchestration

Address
0x593e60 · 423 bytes, up to 0x594006
Signature
void __thiscall (CGxDevice *this)
Meaning
Sets every render state to its reset default through the setters
Confidence
verified, proof one
Finding
gx/renderstate#reset-defaults

Finding: Reset defaults in gx: render state

0x593e60, facade 0x589f60, sets states through the setters: ids 0, 2, 3, 5, 6, 7, 9, 10, 12, 17, 21, 0x43 and 0x45 to 0, id 1 to 0xffffffff, ids 11, 0x41 and 0x44 to 1.0, id 13 to 0xffff0000, ids 14, 15, 16 and 20 to 1, id 0x42 to (1, 0, 0), and ids 0x3f and 0x40 to no object. For each stage s it sets the texture (id 0x17+s) to none, the preset (id 0x1f+s) to 1, the mip bias to 0 and the texture coordinate mode to 0. It leaves ids 4, 18, 19 and 22 unchanged. The only caller is code of ui.

The derivation is in the doc.

Callers 1

Callees 5

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