CGxDeviceOpenGl::LoadViewMatrix
function · gx · host
- Address
0x5a0090· 167 bytes, up to0x5a0136- Signature
void __thiscall (CGxDeviceOpenGl *this, const float *matrix)- Meaning
- Flips a view matrix's Z column and loads it as the OpenGL modelview matrix
- Confidence
- verified, proof one
- Finding
- gx/draw#handedness-flip
Finding: Handedness flip in gx: drawing
0x5a0000(src, dst) copies a 4 by 4 matrix and negates elements 2, 6, 10 and 14, the Z column of the row-major layout. OpenGL loads the view matrix through 0x5a0090, which flips a copy with it and calls glLoadMatrixf in GL_MODELVIEW, and builds the texture matrix of coordinate mode 2 with it.
The derivation is in the doc.
Callers 3
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.