MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ~NpShape

Method ~NpShape

deps/physx/physx/source/physx/src/NpShape.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64NpShape::~NpShape()
65{
66 decMeshRefCount();
67
68 PxU32 nbMaterials = mShape.getNbMaterials();
69 for (PxU32 i=0; i < nbMaterials; i++)
70 {
71 NpMaterial* mat = static_cast<NpMaterial*>(mShape.getMaterial(i));
72 mat->decRefCount();
73 }
74}
75
76void NpShape::onRefCountZero()
77{

Callers 1

NpDestroyShapeFunction · 0.80

Calls 3

getNbMaterialsMethod · 0.45
getMaterialMethod · 0.45
decRefCountMethod · 0.45

Tested by

no test coverage detected