CCamera
struct · camera · 368 bytes
- Vtable
0x81d7c0- Meaning
- Holds a camera: the property slots and update list, then nine properties
- Confidence
- verified, proof one
- Finding
- camera#lifetime
Finding: Lifetime in camera
0x7ac930 allocates and builds a camera with the defaults and returns its handle from
0x41af10. 0x7acf10 does the same and then copies each property's value from a source camera
through the property's set slot. Destruction runs vtable 0x81d7c0 slot 0, 0x7acd80: it
destroys the properties, unlinks them, frees the slot array, and frees the camera when bit 0 of
its argument is set.
The derivation is in the doc.
Fields 32
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void ** | __vfptr | Holds the vtable 0x81d7c0 | verified, proof one | camera#lifetime |
0x0008 | 4 | uint32_t | m_slotCapacity | Holds the allocated length of the slot array | verified, proof one | camera#lifetime |
0x000c | 4 | uint32_t | m_slotCount | Holds the number of slots; ids at or past it are refused | verified, proof one | camera#property-updates |
0x0010 | 4 | CBaseManaged ** | m_slots | Holds the property pointer for each id | verified, proof one | camera#property-updates |
0x0014 | 4 | int32_t | m_listLinkOffset | Holds 4, the offset of the link inside a listed property | verified, proof one | camera#lifetime |
0x0018 | 8 | void *[2] | m_listHead | Holds the update list head, linked to itself when empty | verified, proof one | camera#lifetime |
0x0020 | 28 | CBaseManaged | m_eyeProperty | Holds the eye position property, id 7, a vector | verified, proof one | camera#properties |
0x003c | 12 | float[3] | m_eye | Holds the eye position | verified, proof one | camera#properties |
0x0048 | 28 | CBaseManaged | m_targetProperty | Holds the point looked at property, id 8, a vector | verified, proof one | camera#properties |
0x0064 | 12 | float[3] | m_target | Holds the point looked at | verified, proof one | camera#properties |
0x0070 | 28 | CBaseManaged | m_distanceProperty | Holds the eye-to-target distance property, id 1, a scalar | verified, proof one | camera#properties |
0x008c | 4 | float | m_distance | Holds the eye-to-target distance | verified, proof one | camera#properties |
0x0090 | 28 | CBaseManaged | m_farClipProperty | Holds the far clip distance property, id 2, a scalar | verified, proof one | camera#properties |
0x00ac | 4 | float | m_farClip | Holds the far clip distance | verified, proof one | camera#properties |
0x00b0 | 28 | CBaseManaged | m_nearClipProperty | Holds the near clip distance property, id 3, a scalar | verified, proof one | camera#properties |
0x00cc | 4 | float | m_nearClip | Holds the near clip distance | verified, proof one | camera#properties |
0x00d0 | 28 | CBaseManaged | m_pitchProperty | Holds the pitch angle property, id 0, a angle | inferred | camera#properties |
0x00ec | 4 | float | m_pitch | Holds the pitch angle | inferred | camera#properties |
0x00f0 | 4 | float | m_pitchCos | Holds the cosine of the pitch angle, recomputed on every store | inferred | camera#angle-properties |
0x00f4 | 4 | float | m_pitchSin | Holds the sine of the pitch angle, recomputed on every store | inferred | camera#angle-properties |
0x00f8 | 28 | CBaseManaged | m_fovProperty | Holds the field of view property, id 4, a angle | verified, proof one | camera#properties |
0x0114 | 4 | float | m_fov | Holds the field of view | verified, proof one | camera#properties |
0x0118 | 4 | float | m_fovCos | Holds the cosine of the field of view, recomputed on every store | verified, proof one | camera#angle-properties |
0x011c | 4 | float | m_fovSin | Holds the sine of the field of view, recomputed on every store | verified, proof one | camera#angle-properties |
0x0120 | 28 | CBaseManaged | m_rollProperty | Holds the roll angle property, id 5, a angle | verified, proof one | camera#properties |
0x013c | 4 | float | m_roll | Holds the roll angle | verified, proof one | camera#properties |
0x0140 | 4 | float | m_rollCos | Holds the cosine of the roll angle, recomputed on every store | verified, proof one | camera#angle-properties |
0x0144 | 4 | float | m_rollSin | Holds the sine of the roll angle, recomputed on every store | verified, proof one | camera#angle-properties |
0x0148 | 28 | CBaseManaged | m_yawProperty | Holds the yaw angle property, id 6, a angle | inferred | camera#properties |
0x0164 | 4 | float | m_yaw | Holds the yaw angle | inferred | camera#properties |
0x0168 | 4 | float | m_yawCos | Holds the cosine of the yaw angle, recomputed on every store | inferred | camera#angle-properties |
0x016c | 4 | float | m_yawSin | Holds the sine of the yaw angle, recomputed on every store | inferred | camera#angle-properties |