| 48 | } |
| 49 | |
| 50 | NpShape::NpShape(const PxGeometry& geometry, PxShapeFlags shapeFlags, const PxU16* materialIndices, PxU16 materialCount, bool isExclusive) |
| 51 | : PxShape (PxConcreteType::eSHAPE, PxBaseFlag::eOWNS_MEMORY | PxBaseFlag::eIS_RELEASABLE) |
| 52 | , mActor (NULL) |
| 53 | , mShape (geometry, shapeFlags, materialIndices, materialCount, isExclusive) |
| 54 | , mName (NULL) |
| 55 | , mExclusiveAndActorCount (isExclusive ? EXCLUSIVE_MASK : 0) |
| 56 | { |
| 57 | PX_ASSERT(mShape.getScShape().getPxShape() == static_cast<PxShape*>(this)); |
| 58 | |
| 59 | PxShape::userData = NULL; |
| 60 | |
| 61 | incMeshRefCount(); |
| 62 | } |
| 63 | |
| 64 | NpShape::~NpShape() |
| 65 | { |
nothing calls this directly
no test coverage detected