benilla-re systems structs docs

CGxDevice::InitRenderStates

function · gx · orchestration

Address
0x593bf0 · 621 bytes, up to 0x593e5c
Signature
void __thiscall (CGxDevice *this)
Meaning
Sizes the render state arrays, clears them and writes the constructor defaults
Confidence
verified, proof one
Finding
gx/renderstate#constructor-defaults

Finding: Constructor defaults in gx: render state

The device constructor 0x5916e0 calls 0x593bf0, which zeroes the 70 entries and sets: id 1 0xffffffff; id 11 1.0; id 13 0xffff0080; ids 14, 15, 16, 18, 20 and 22 1; id 19 0xf; ids 0x1f to 0x26 1; ids 0x41 and 0x44 1.0; id 0x42 the three floats at 0xc0ef70. Every other id stays 0, so lighting, fog, depth test, depth write and culling start on, blending off and every stage on preset 1.

The derivation is in the doc.

Callers 1

Callees 3

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