benilla-re systems structs docs

BuildWorldMapTiles

function · loadingscreen · primitive

Address
0x4081e0 · 453 bytes, up to 0x4083a4
Signature
void __cdecl (void)
Meaning
Fills the corner and texture coordinate arrays of the 12 world map tiles
Confidence
verified, proof one
Finding
loadingscreen/route#world-map-tiles
Test
loadingscreen::worldmap_tile_geometry_difftest

Finding: World map tiles in loadingscreen: route

0x4081e0 fills the arrays of the 12 tiles for a 1002 × 668 pixel map in 256-pixel tiles, 4 columns and 3 rows. Tile (c, r) has the screen corners x = px/1002 and y = 1 − py/668 for its pixel rectangle clipped to 1002 and 668, and the texture rectangle (0, 0) to (w, h), with w = 1 and h = 1 except w = 0.9140625 in column 3 and h = 0.609375 in row 2. Corners are at 0x8828f8, three floats each, and texture coordinates at 0x882be8, two floats each, in strip order: lower left, lower right, upper left, upper right.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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