benilla-re systems structs docs

CSimpleModel

struct · ui · 988 bytes

Vtable
0x81c608
Meaning
Holds a Model frame: a CSimpleFrame, its scene, model, camera, light, position, facing, scale, fog and bounding box
Confidence
verified, proof one
Finding
ui/modelview#model-frame-fields

Finding: Model frame fields in ui: Model frames, camera and paint

A model frame keeps its scene at +0x314, the model at +0x318, the camera at +0x31c, a pending camera index at +0x320, a light at +0x324, a position, facing and scale at +0x390 to +0x3a0, fog at +0x3a4 to +0x3b0, the model's bounding box at +0x3b4, and two script slots. The constructor zeroes the fields above; the pending camera index is 0, a request for camera 0, the scale and the fog far distance are 1.0, and the fog colour is 0xffffffff.

offsetfield
+0x314scene
+0x318, +0x31c, +0x320model, camera, pending camera index
+0x324light (0x6c bytes)
+0x390 to +0x398, +0x39c, +0x3a0position, facing, scale
+0x3a4 to +0x3b0fog flags, colour, near, far
+0x3b4 to +0x3c8model bounding box, minimum then maximum
+0x3cc, +0x3d4OnUpdateModel and OnAnimFinished slots

The derivation is in the doc.

Fields 15

offsetsizetypenamemeaningconfidencefinding
0x03144M2Scene *m_scenePoints to the frame's own scene, created on first useverified, proof oneui/modelview#model-frame-fields
0x03184CM2Model *m_modelPoints to the model the frame shows, or nullverified, proof oneui/modelview#model-frame-fields
0x031c4CCamera *m_cameraPoints to the referenced camera the paint uses, or null for the orthographic legverified, proof oneui/modelview#model-frame-fields
0x03204uint32_tm_pendingCameraHolds the camera index waiting to be applied, or -1 once a camera is settledverified, proof oneui/modelview#model-frame-fields
0x0324108M2Lightm_lightHolds the frame's own light, disabled unless SetLight enables itverified, proof oneui/modelview#model-frame-fields
0x039012float[3]m_positionHolds the SetPosition vector, scaled by the layout scale into the root matrixverified, proof oneui/modelview#model-frame-fields
0x039c4floatm_facingHolds the facing in radians, a rotation about +Zverified, proof oneui/modelview#model-frame-fields
0x03a04floatm_modelScaleHolds the model scale, 1.0 by defaultverified, proof oneui/modelview#model-frame-fields
0x03a44uint32_tm_fogFlagsHolds the fog flags; bit 0 arms the fogverified, proof oneui/modelview#model-frame-fields
0x03a84uint32_tm_fogColorHolds the fog colour as 0xAARRGGBBverified, proof oneui/modelview#model-frame-fields
0x03ac4floatm_fogNearHolds the fog near distanceverified, proof oneui/modelview#model-frame-fields
0x03b04floatm_fogFarHolds the fog far distance, 1.0 by defaultverified, proof oneui/modelview#model-frame-fields
0x03b424float[6]m_boundingBoxHolds the model's bounding box, minimum then maximum, copied when the model is readyverified, proof oneui/modelview#model-frame-fields
0x03cc8uint32_t[2]m_onUpdateModelHolds the OnUpdateModel script slotverified, proof oneui/modelview#model-frame-fields
0x03d48uint32_t[2]m_onAnimFinishedHolds the OnAnimFinished script slotverified, proof oneui/modelview#model-frame-fields