SimpleModelSetCamera
function · ui · orchestration
- Address
0x76cec0· 100 bytes, up to0x76cf23- Signature
void __thiscall (void *this, uint32_t index)- Meaning
- Installs camera number index of the model, or none past the count, or keeps the index until ready
- 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 4
- ClearCharSelectRoster glue
- CharacterModelBaseChooseCamera ui
- SimpleModelModelReady ui
- Model::SetCamera ui
Callees 4
- CM2Model::IsLoaded models
- CM2Model::GetCameraCount models
- CM2Model::GetCamera models
- SimpleModelInstallCamera ui
Calls and jumps by a bare address, from tables/calls.tsv.