benilla-re systems structs docs

DrawInteriorTile

function · ui · primitive

Address
0x4ebf20 · 367 bytes, up to 0x4ec08e
Signature
void __fastcall (void *record, const uint32_t *colour)
Meaning
Draws one interior tile as a strip on its box corners with texture coordinates inset by half a texel
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.

Callers 1

Callees 8

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