BuildOrthoMatrixFromFloats
function · gxumath · unreached
- Address
0x5c3e50· 31 bytes, up to0x5c3e6e- Signature
void __fastcall (const float *planes, float *out)- Meaning
- Calls 0x5c3d90 with six floats loaded from the structure at ecx and the output in edx
- Confidence
- verified, proof one
- Finding
- gxumath#orthographic-matrix
Finding: Orthographic matrix in gxumath
0x5c3d90 (ecx the output; l, r, b, t, n, f on the stack; ret 0x18) writes m0 = 2/(r − l), m5 = 2/(t − b), m10 = 2/(f − n), m12 = −(l + r)/(r − l), m13 = −(b + t)/(t − b),
m14 = −(n + f)/(f − n), m15 = 1 and 0 elsewhere. It needs l ≠ r, b ≠ t and n < f, else error
0x57; NaN passes the first two. 0x5c3e50 loads six floats from the structure at ecx in that
order and calls it with the output in edx; nothing calls it.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- BuildOrthoMatrix gxumath
Calls and jumps by a bare address, from tables/calls.tsv.