CSimpleModel::Layout::vftable
global · ui
- Address
0x81c5d8· 44 bytes, up to0x81c603- Type
void *[11]- Meaning
- Holds the geometry vtable of CSimpleModel, which its constructor stores at +0x24; slots 7 and 8 size the frame
- 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.
| offset | field |
|---|---|
+0x314 | scene |
+0x318, +0x31c, +0x320 | model, camera, pending camera index |
+0x324 | light (0x6c bytes) |
+0x390 to +0x398, +0x39c, +0x3a0 | position, facing, scale |
+0x3a4 to +0x3b0 | fog flags, colour, near, far |
+0x3b4 to +0x3c8 | model bounding box, minimum then maximum |
+0x3cc, +0x3d4 | OnUpdateModel and OnAnimFinished slots |
The derivation is in the doc.