benilla-re systems structs docs

XmlReadDimension

function · ui · primitive

Address
0x6f1eb0 · 486 bytes, up to 0x6f2095
Signature
uint32_t __fastcall (XmlNode *node, float *x, float *y, void *report)
Meaning
Reads x and y from a node's attributes or its AbsDimension child, in layout units
Confidence
verified, proof one
Finding
ui/modelview#model-unit-to-pixel
Test
ui::glue_6f1_metric_scale_divide

Finding: Model unit to pixel in ui: Model frames, camera and paint

On the orthographic leg one model unit is 1280 · modelScale · layoutScale FrameXML units, that is (5/3) · modelScale · layoutScale · screenHeight device pixels, at every aspect. The screen is 768 FrameXML units tall and 768a wide at scale 1. Model (0, 0) lies at the rectangle's bottom-left; +X is screen right, +Y screen up, and +Z is depth only, so SetFacing is a roll in the screen plane. The only sign flip in the chain negates Z.

The derivation is in the doc.

Callers 5

Callees 5

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