| 486 | } |
| 487 | |
| 488 | void NvFlexExtFreeParticles(NvFlexExtContainer* c, int n, const int* indices) |
| 489 | { |
| 490 | #if _DEBUG |
| 491 | for (int i=0; i < n; ++i) |
| 492 | { |
| 493 | // check valid values |
| 494 | assert(indices[i] >= 0 && indices[i] < int(c->mFreeList.capacity())); |
| 495 | |
| 496 | // check for double delete |
| 497 | assert(std::find(c->mFreeList.begin(), c->mFreeList.end(), indices[i]) == c->mFreeList.end()); |
| 498 | } |
| 499 | #endif |
| 500 | |
| 501 | c->mFreeList.insert(c->mFreeList.end(), indices, indices+n); |
| 502 | |
| 503 | c->mNeedsActiveListRebuild = true; |
| 504 | } |
| 505 | |
| 506 | int NvFlexExtGetActiveList(NvFlexExtContainer* c, int* indices) |
| 507 | { |
no outgoing calls
no test coverage detected