MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / resolveReferences

Method resolveReferences

physx/source/physx/src/NpMaterial.cpp:50–60  ·  view source on GitHub ↗

PX_SERIALIZATION

Source from the content-addressed store, hash-verified

48
49// PX_SERIALIZATION
50void NpMaterial::resolveReferences(PxDeserializationContext&)
51{
52 // ### this one could be automated if NpMaterial would inherit from MaterialCore
53 // ### well actually in that case the pointer would not even be needed....
54 mMaterial.setNxMaterial(this); // Resolve MaterialCore::mNxMaterial
55
56 // Maybe not the best place to do it but it has to be done before the shapes resolve material indices
57 // since the material index translation table is needed there. This requires that the materials have
58 // been added to the table already.
59 NpPhysics::getInstance().addMaterial(this);
60}
61
62void NpMaterial::onRefCountZero()
63{

Callers 1

createObjectMethod · 0.45

Calls 2

setNxMaterialMethod · 0.80
addMaterialMethod · 0.45

Tested by

no test coverage detected