AddHandleRef
function · base
- Address
0x41af50· 16 bytes, up to0x41af5f- Signature
void * __thiscall (void *this)- Meaning
- Adds a reference to a handle's object and returns the handle, or 0 for a null handle
- Confidence
- verified, proof one
- Finding
- models/model#instance-arrays
Finding: Instance arrays in models: the instance
Initialization allocates the instance's animated state from the header's counts; a failed allocation
fails it. Each element array starts zeroed or with its states cleared, except the visibility words
(Geoset visibility).
| offset | array, per element |
|---|---|
+0x064, +0x06c | one word per global sequence (its time), one word per sequence |
+0x090, +0x094 | bone states (0x118, the bone's flags copied to +0xf4), bone matrices (64) |
+0x098, +0x09c | visibility words |
+0x0a0, +0x0a8, +0x0ac | colour (0x50), transparency (0x20) and texture frame (0x20) states |
+0x0a4 | texture handles, each taken from the copy source or the shared model with a reference |
+0x0b0, +0x0b4 | texture transform states (0x98), texture transform matrices (64) |
+0x1c8, +0x1f0 | attachment visibility states (0x20), event states (0x20) |
+0x200 | light states (0x170): a light at +0x104 of the record's type, +0x3c and +0x8c 1.0 |
+0x3c4 | camera states (0x84) with a camera at +0x80 given the record's +0x4, +0xc, +0x8 |
+0x3c8, +0x3cc | ribbon states (0xd0), ribbon emitters |
+0x3d0, +0x3d4 | particle states (0x16c), particle emitters |
The derivation is in the doc.
Callers 13
- CCamera::ArmShot uicamera
- OpenFontFace unassigned
- CM2Model::InitializeLoaded models
- CM2Model::SetReplaceableTexture models
- CSimpleTop::SetCursor ui
- SimpleModelInstallCamera ui
- CSimpleTexture::SetImage ui
- LightningBolt::SetTexture gx
- CParticleEmitter2::CopyConstruct models
- CParticleEmitter2::SetTexture models
- CParticleEmitter2::ReplaceTexture models
- CRibbonEmitter::CopyTextures models
- CRibbonEmitter::ReplaceTexture models
Callees 1
- 0x41af30 base
Calls and jumps by a bare address, from tables/calls.tsv.