benilla-re systems structs docs

gxumath

rowsnamedverifiedproof twotested
functions3636 (100%)36 (100%)0 (0%)6 (16%)
globals1010 (100%)10 (100%)0 (0%)–
structs0––––
fields0––––
all4646 (100%)46 (100%)0 (0%)6 (16%)

Docs

gxumath

The graphics maths layer: the matrix builders the interface and the world draw through, the frustum and screen-projection code beside them, and picking, decal and image routines that nothing in this build calls.

It is one object file, 0x5c3cc0 through 0x5c6640, with the C runtime's initializer slots 0x82aa38 to 0x82aa40. A matrix is 16 floats, row-major: element (row r, column c) is float 4r + c, and a point is a row vector the matrix multiplies on the right, so 0x7bcb40 gives x·m0 + y·m4 + z·m8 + w·m12 first. The file calls cmath for the 4×4 determinant, inverse, product, vector transform and translation, spline for the three-vector constructor 0x4549a0, and gx for the device getters. A failed argument check calls 0x64e850 with 0x57, which leaves the output alone.

Closure

10 roots. A walk of direct calls and jumps from them reaches 13 of the 36 functions the system owns, and stops at 12 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.

Roots

Boundary

Functions 36

addressnameclassconfidencetestclosure
0x5c3cc0BuildPerspectiveMatrixprimitiveverified, proof one✓✓
0x5c3d90BuildOrthoMatrixprimitiveverified, proof one✓✓
0x5c3e50BuildOrthoMatrixFromFloatsunreachedverified, proof one
0x5c3e70BuildLookAtMatrixprimitiveverified, proof one✓✓
0x5c4100BuildMirroredLookAtMatrixunreachedverified, proof one
0x5c4390InitGxuInfinityThunkorchestrationverified, proof one✓
0x5c43a0InitGxuInfinityorchestrationverified, proof one✓
0x5c43b0BuildFrustumCornersprimitiveverified, proof one✓✓
0x5c4930BuildFrustumPlanesunreachedverified, proof one
0x5c4c70FrustumBoundsunreachedverified, proof one
0x5c4d70ProjectPointsForDecalunreachedverified, proof one
0x5c4f30ProjectPointsToWindowprimitiveverified, proof one✓✓
0x5c51f0ResampleImageunreachedverified, proof one
0x5c5350TexelBufferCallbackprimitiveverified, proof one✓
0x5c53d0TexelBufferExitorchestrationverified, proof one
0x5c53e0IntersectUnitRaySphereunreachedverified, proof one
0x5c54f0PointInFrustumPlanesunreachedverified, proof one
0x5c5560IntersectUnitRayTriangleunreachedverified, proof one
0x5c57a0PickSkinnedMeshunreachedverified, proof one
0x5c5bd0FreePickVertexBufferunreachedverified, proof one
0x5c5bf0PickStaticMeshunreachedverified, proof one
0x5c5e30ClipOutcodeunreachedverified, proof one
0x5c5ee0BuildDecalTexCoordsunreachedverified, proof one
0x5c63d0SnapDecalPointunreachedverified, proof one
0x5c6470RoundToGridCeilunreachedverified, proof one
0x5c64b0RoundToGridCeilAltunreachedverified, proof one
0x5c64f0InitGxuTwoPiThunkorchestrationverified, proof one✓
0x5c6500InitGxuTwoPiprimitiveverified, proof one✓
0x5c6510InitGxuInvTwoPiThunkorchestrationverified, proof one✓
0x5c6520InitGxuInvTwoPiprimitiveverified, proof one✓
0x5c6540SetVector4orchestrationverified, proof one✓✓
0x5c6560ScaleVector4unreachedverified, proof one
0x5c6590NegateVector4unreachedverified, proof one
0x5c65c0SubtractVector4unreachedverified, proof one
0x5c65f0CopyMatrixColumn2unreachedverified, proof one
0x5c6620CopyMatrixColumn3unreachedverified, proof one

Globals 10

addressnametypeconfidence
0x8038dcs_perspectiveDepthFactorfloatverified, proof one
0xc2b850s_noHitDistancefloatverified, proof one
0xc2b854s_pickBufferFlagsuint8_tverified, proof one
0xc2b858s_gxuInvTwoPifloatverified, proof one
0xc2b860s_texelBufferuint32_t[64]verified, proof one
0xc2b960s_texelBufferFlagsuint8_tverified, proof one
0xc2b964s_gxuTwoPifloatverified, proof one
0xc2b968s_pickVertexCapacityuint32_tverified, proof one
0xc2b96cs_pickVertexCountuint32_tverified, proof one
0xc2b970s_pickVertexBufferfloat *verified, proof one