benilla-re systems structs docs

s_glVersion

global · gx

Address
0xc0f3ec · 4 bytes, up to 0xc0f3ef
Type
uint32_t
Meaning
Holds the GL_VERSION major number shifted left 16 ored with its minor number
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.