esp::assets::RigManager class

Tracks the rig instances in a simulator (skinned articulated objects).

Public functions

auto registerRigInstance(gfx::Rig&& rig) -> int
Registers a rig instance. This gives ownership of the rig to the rig manager. Use deleteRigInstance to dispose of the rig.
void registerRigInstance(int rigId, gfx::Rig&& rig)
Registers a rig instance. This gives ownership of the rig to the rig manager. Use deleteRigInstance to dispose of the rig. This variant assumes that the rig id comes from gfx-replay, so id management can be skipped.
void deleteRigInstance(int rigId)
Unregisters a rig instance and deletes its bone nodes.
auto rigInstanceExists(int rigId) const -> bool
Checks if the specified rig ID has been registered to the rig manager.
auto getRigInstance(int rigId) -> gfx::Rig&
Get a reference to a registered rig instance.

Function documentation

int esp::assets::RigManager::registerRigInstance(gfx::Rig&& rig)

Registers a rig instance. This gives ownership of the rig to the rig manager. Use deleteRigInstance to dispose of the rig.

Parameters
rig Instantiated rig to register.
Returns Unique id of the rig.

void esp::assets::RigManager::registerRigInstance(int rigId, gfx::Rig&& rig)

Registers a rig instance. This gives ownership of the rig to the rig manager. Use deleteRigInstance to dispose of the rig. This variant assumes that the rig id comes from gfx-replay, so id management can be skipped.

Parameters
rigId Unique id for the rig.
rig Instantiated rig to register.

void esp::assets::RigManager::deleteRigInstance(int rigId)

Unregisters a rig instance and deletes its bone nodes.

Parameters
rigId ID of the rig.

bool esp::assets::RigManager::rigInstanceExists(int rigId) const

Checks if the specified rig ID has been registered to the rig manager.

Parameters
rigId ID of the rig.
Returns Whether the rig is registered to the rig manager.

gfx::Rig& esp::assets::RigManager::getRigInstance(int rigId)

Get a reference to a registered rig instance.

Parameters
rigId ID of the rig.
Returns Reference to a registered rig instance.