| 508 | } |
| 509 | |
| 510 | bool StraightBoxes::allocate(PxU32 nb) |
| 511 | { |
| 512 | if(nb<=mSize) |
| 513 | return false; |
| 514 | DELETEARRAY(mBoxes); |
| 515 | // PT: we allocate NB_SENTINELS more boxes than necessary here so we don't need to allocate one more for SIMD-load safety |
| 516 | mBoxes = PX_NEW_TEMP(SIMD_AABB4)[nb+NB_SENTINELS]; |
| 517 | mSize = mCapacity = nb; |
| 518 | return true; |
| 519 | } |
| 520 | |
| 521 | |
| 522 | class SplitBoxes : public Boxes |
no outgoing calls
no test coverage detected