benilla-re systems structs docs

CGxDeviceOpenGl::InitState

function · gx · host

Address
0x59ce30 · 494 bytes, up to 0x59d01d
Signature
void __thiscall (CGxDeviceOpenGl *this)
Meaning
Sets the context's initial matrix, texture generation, light model and enable state
Confidence
verified, proof one
Finding
gx/device#opengl-initial-state

Finding: OpenGL initial state in gx: the device

0x59ce30 sets the context's initial state: it clears the shadow cache (0x59ba70), loads the model-view identity, and on each texture unit sets the R and Q generation planes, eye and object, to (0, 0, 1, 0) and (0, 0, 0, 1). When the flag at 0xc0f2a0 is set it enables point-sprite coordinate replacement on each unit. It then applies the lights (0x591ef0), sets a zero light-model ambient, separate specular and local viewer, loads the product of two cached matrices through 0x5a0090, enables the vertex array (0x8074), capability 0x8650 when the vertex program flag 0xc0f254 is set, colour material (0xb57, glColorMaterial(0x408, 0x1602)) and scissor (0xc11), and sets unpack alignment 1 (0xcf5).

The derivation is in the doc.

Callers 1

Callees 5

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