DrawInteriorTile
function · ui · primitive
- Address
0x4ebf20· 367 bytes, up to0x4ec08e- 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.
| vertex | position | texture coordinate |
|---|---|---|
| 0 | min x, min y | du, 1 - dv |
| 1 | max x, min y | 1 - du, 1 - dv |
| 2 | max x, max y | 1 - du, dv |
| 3 | min x, max y | du, dv |
The derivation is in the doc.
Callers 1
Callees 8
- GetTextureDeviceObject gx
- GxRsSet gx
- GxRsSetObject gx
- GxBuildVerticesCounted gx
- GxDrawCounted gx
- 0x58a340 gx
- CGxTexFlags::CGxTexFlags gx
- GxTexGetDesc gx
Calls and jumps by a bare address, from tables/calls.tsv.