benilla-re systems structs docs

s_tileStripIndices

global · ui

Address
0x84c524 · 8 bytes, up to 0x84c52b
Type
uint16_t[4]
Meaning
Holds the strip index order 0, 1, 3, 2 of the interior tile draw
Confidence
verified, proof one
Finding
minimap/draw#interior-tile-quad

Finding: Interior tile quad in minimap: draw

0x4ebf20(record, colour) draws one interior tile as a four-vertex triangle strip. The positions are the corners of the record's bounding box in x and y with z 0. The texture coordinates are inset by half a texel on every side, 0.5 / width and 0.5 / height, where the width and height are the tile texture's. One colour serves all four vertices.

vertexpositiontexture coordinate
0min x, min ydu, 1 - dv
1max x, min y1 - du, 1 - dv
2max x, max y1 - du, dv
3min x, max ydu, dv

The derivation is in the doc.