HandleClose2
function · models · host
- Address
0x7103a0· 34 bytes, up to0x7103c1- Meaning
- Releases a model instance: decrements its count and destroys and frees it at zero
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- models/model#instance-object
Finding: Instance object in models: the instance
The constructor sets the reference count to 1, the base, world and transport matrices to
identity, the diffuse multiplier to (1, 1, 1), the depth-fill flag and the two loaded-children
flags to 1, and picks the skinning routine. Initialize links the instance to its scene, adds a
reference to the shared model and, for a copy, to the source instance, and attaches a new instance
of each of the source's children at the same attachment id.
| offset | holds |
|---|---|
+0x010, +0x014 | loaded, textures loaded |
+0x02c, +0x030, +0x034 | scene, shared model, copy source |
+0x038, +0x03c | deferred call queue: head, address of the tail link |
+0x040 | frame of the last animation |
+0x090, +0x094 | bone states (0x118 each), bone matrices (64 bytes each) |
+0x0bc, +0x0fc, +0x13c | base matrix, world matrix, transport matrix |
+0x180, +0x184, +0x190 | alpha, diffuse multiplier, emissive colour |
+0x1cc, +0x1d0, +0x1d4 | parent, attachment id, attachment index in the parent |
+0x1dc, +0x1e4 | first child, next sibling |
+0x3b8 | lighting record in use |
The derivation is in the doc.
Callers 64
- GetFirstLoginCameraPosition glue
- AttachKitEffect glue
- BuildCharSelectModel glue
- DestroyCharSelectRecord glue
- DestroyCharacterComponent charactermodel
- InitCharacterComponent charactermodel
- CloneCharacterComponent charactermodel
- AttachItemVisuals charactermodel
- AttachItemModelFile charactermodel
- CreateLooseItemModel charactermodel
- 0x4808d0 ui
- ReleasePickNodes ui
- ReleaseModelNode ui
- 0x484120 ui
- CGMinimapFrame::LoadArrowModel ui
- CGCharacterModelBase::AttachUnitModel ui
- CGCharacterModelBase::AttachDisplayModel ui
- CCamera::ArmShot uicamera
- CCamera::ReleaseShot uicamera
- BakePortrait ui
- CGCorpse_C::Rebuild objectlayer
- CGCorpse_C::RemoveLootSparkle objectlayer
- CGPlayer_C::OnVisibleItemChanged objectlayer
- CGGameObject_C::ApplyArtKit objectlayer
- CGUnit_C::~CGUnit_C objectlayer
- LoadQuestMarkerModels objectlayer
- CGUnit_C::ReleaseQuestMarker objectlayer
- CGUnit_C::Mount objectlayer
- CGUnit_C::OnDisplayChanged objectlayer
- CGUnit_C::MoveHandItem objectlayer
- CGUnit_C::AttachHandItem objectlayer
- CGUnit_C::SetAmmoDisplay objectlayer
- CGUnit_C::RefreshRangedWeaponModel objectlayer
- CGObject_C::~CGObject_C objectlayer
- CGObject_C::SetModel objectlayer
- CGObject_C::SetModel2 objectlayer
- CGObject_C::CreateNode objectlayer
- CMissile::~CMissile objectlayer
- CMissile::ArriveWithoutTarget objectlayer
- CMissile::ArriveMiss objectlayer
- CEffect::~CEffect objectlayer
- CWorld::SetObjectModel terrain
- DestroyMapEntity terrain
- DeleteMapEntityBase terrain
- CMapDoodadDef::Release terrain
- CMapDoodadDef::~CMapDoodadDef terrain
- CloseDetailDoodadHandles terrain
- WTOBJECT::Release playername
- ShutdownSky lighting
- BlizzardObject::~BlizzardObject spell
- ShardModelDoneCallback spell
- M2SceneDestruct models
- M2SceneAdvance models
- CM2Model::~CM2Model models
- CM2Model::Initialize models
- CM2Model::InitializeLoaded models
- CM2Model::PlayAnimation models
- CM2Model::Detach models
- DestroyModelFrame ui
- SimpleModelLoadFile ui
- SimpleModelSetModel ui
- CParticleEmitter2::~CParticleEmitter2 models
- Particle2ModelRelease models
- ReleaseStars lighting
Callees 2
- SMemFree storm
- CM2Model::~CM2Model models
Calls and jumps by a bare address, from tables/calls.tsv.