DrawRoute
function · loadingscreen · primitive
- Address
0x406fb0· 410 bytes, up to0x407149- Signature
void __cdecl (void)- Meaning
- Reveals the ribbon quads the fraction has reached and draws the markers and the ribbon
- Confidence
- verified, proof one
- Finding
- loadingscreen/route#route-drawing
Finding: Route drawing in loadingscreen: route
When the route has vertices, 0x406f20 draws the 12 tiles Interface\WorldMap\World\World1 to
World12 in a 4 × 3 grid, then the route, and returns 1, so the bar is skipped. The route draws
the two marker quads and the ribbon quads whose index k satisfies k/(n − 1) ≤ fraction, with
n = segs + 1. A ribbon quad's colour is set to white when the loop reaches it, and the first quad
that fails is coloured but not drawn. The DynamicElements texture is bound, and the ribbon is a
triangle list of six indices per quad.
The derivation is in the doc.
Callers 1
- DrawTaxiScreen loadingscreen
Callees 7
- __alloca_probe crt
- GetTextureDeviceObject gx
- GxRsSet gx
- GxRsSetObject gx
- GxBuildVerticesCounted gx
- GxDrawCounted gx
- 0x58a340 gx
Calls and jumps by a bare address, from tables/calls.tsv.