benilla-re systems structs docs

SimpleModelModelReady

function · ui · orchestration

Address
0x76ce00 · 126 bytes, up to 0x76ce7d
Signature
void __thiscall (void *this, CM2Model *model)
Meaning
Applies a pending camera index and copies the model's bounding box into the frame
Confidence
verified, proof one
Finding
ui/modelview#choosing-the-camera

Finding: Choosing the camera in ui: Model frames, camera and paint

A model frame draws only when its pending camera index is −1. The constructor leaves 0, and when the model is ready the frame applies it: it looks up raw camera number idx of the model, ignoring the file's camera lookup table, and installs it. An index at or past the camera count installs no camera, so the paint takes the orthographic leg. Installing any camera, including none, sets the index to −1. SetCamera(n) truncates n and does the same; a negative n is past the count. With no model, or one whose data is not resident, the call only stores the index.

The derivation is in the doc.

Callers 1

Callees 6

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