benilla-re systems structs docs

ScaleMatrixRows

function · cmath · primitive

Address
0x7bdca0 · 82 bytes, up to 0x7bdcf1
Signature
void __thiscall (NTempest::C44Matrix *this, const NTempest::C3Vector *s)
Meaning
Multiplies the matrix's first three rows by s[0], s[1], s[2]
Confidence
verified, proof one
Finding
camera#orthographic-setup
Test
animation::m2_animate_difftest, terrain::liquid_tex_matrix_difftest, cmath::mat34_scale3_rows

Finding: Orthographic setup in camera

0x7ad7f0 takes a rectangle r in ecx and a point p in edx. With cx = (r[1] + r[3])/2 and cy = (r[0] + r[2])/2, it sets an orthographic projection over the rectangle moved to that centre, depth ±500, Z negated, and a view translated by (p[0] − cx, p[1] − cy, 0). When 0x589ca0 returns 1 it also moves the projection by half the rectangle's size over the screen's, from 0x58a250. Its stack argument is unused.

The derivation is in the doc.

Callers 11

Callees 0

None by a direct call or jump.

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