CGxDeviceOpenGl::ApplyTexCoordMode
function · gx · primitive
- Address
0x59d120· 529 bytes, up to0x59d330- Signature
void __thiscall (CGxDeviceOpenGl *this, uint32_t stage, uint32_t mode)- Meaning
- Sets a stage's coordinate generation flags and texture matrix for mode 0 to 6
- Confidence
- verified, proof one
- Finding
- gx/renderstate#opengl-coordinate-modes
- Test
gx::matrix_reorient_matches_binary
Finding: OpenGL coordinate modes in gx: render state
OpenGL (0x59d120) sets generation per stage: mode 0 off; mode 1 GL_OBJECT_LINEAR (0x2401) on S, T, R; modes 2 and 3 GL_EYE_LINEAR (0x2400); mode 4 0x8512; mode 5 0x8511; mode 6 follows [dev+0x39dc]. Only mode 2 loads the top view matrix, flipped through 0x5a0000; the other modes use the identity (0x591370).
The derivation is in the doc.
Callers 1
Callees 4
- MatrixStackSetIdentity gx
- MatrixStackTopForWrite gx
- CGxDeviceOpenGl::SetCachedState gx
- GxMatrixFlipZ gx
Calls and jumps by a bare address, from tables/calls.tsv.