|
RavEngine
|
Public Types | |
| enum | { PAIR_INARRAY =1 , PAIR_REMOVED =2 , PAIR_NEW =4 , PAIR_UNKNOWN =8 } |
Public Member Functions | |
| void | init (const PxU32 size) |
| void | release () |
| void | shrinkMemory () |
| const BroadPhasePair * | AddPair (BpHandle id0, BpHandle id1, const PxU8 state) |
| bool | RemovePair (BpHandle id0, BpHandle id1) |
| bool | RemovePairs (const PxBitMap &removedAABBs) |
| const BroadPhasePair * | FindPair (BpHandle id0, BpHandle id1) const |
| PX_FORCE_INLINE PxU32 | GetPairIndex (const BroadPhasePair *PX_RESTRICT pair) const |
| BroadPhasePair * | FindPair (BpHandle id0, BpHandle id1, PxU32 hash_value) const |
| void | RemovePair (BpHandle id0, BpHandle id1, PxU32 hash_value, PxU32 pair_index) |
| void | reallocPairs (const bool allocRequired) |
| PX_FORCE_INLINE bool | IsInArray (const BroadPhasePair *PX_RESTRICT pair) const |
| PX_FORCE_INLINE bool | IsRemoved (const BroadPhasePair *PX_RESTRICT pair) const |
| PX_FORCE_INLINE bool | IsNew (const BroadPhasePair *PX_RESTRICT pair) const |
| PX_FORCE_INLINE bool | IsUnknown (const BroadPhasePair *PX_RESTRICT pair) const |
| PX_FORCE_INLINE void | ClearState (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | SetInArray (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | SetRemoved (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | SetNew (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | ClearInArray (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | ClearRemoved (const BroadPhasePair *PX_RESTRICT pair) |
| PX_FORCE_INLINE void | ClearNew (const BroadPhasePair *PX_RESTRICT pair) |
Public Attributes | |
| BpHandle * | mHashTable |
| BpHandle * | mNext |
| PxU32 | mHashSize |
| PxU32 | mHashCapacity |
| PxU32 | mMinAllowedHashCapacity |
| BroadPhasePair * | mActivePairs |
| PxU8 * | mActivePairStates |
| PxU32 | mNbActivePairs |
| PxU32 | mActivePairsCapacity |
| PxU32 | mMask |