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

Method incRefCount

physx/source/foundation/src/PsFoundation.cpp:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void Foundation::incRefCount()
193{
194 PX_ASSERT(mInstance != NULL);
195
196 if(mRefCount > 0)
197 {
198 mRefCount++;
199 }
200 else
201 {
202 mInstance->error(PxErrorCode::eINVALID_OPERATION, __FILE__, __LINE__,
203 "Foundation: Invalid registration detected.");
204 }
205}
206
207void Foundation::decRefCount()
208{

Callers 9

managerNewTouchMethod · 0.45
createShapeMethod · 0.45
resolveReferencesMethod · 0.45
setMaterialsMethod · 0.45
NpShapeIncRefCountFunction · 0.45
incMeshRefCountMethod · 0.45
addActorMethod · 0.45

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected