20 #ifndef __OPC_SWEEPANDPRUNE_H__ 21 #define __OPC_SWEEPANDPRUNE_H__ 44 bool Init(
udword nb_objects);
49 void DumpPairs(
Pairs& pairs)
const;
50 void DumpPairs(
PairCallback callback,
void* user_data)
const;
61 inline_ void FreeElem(SAP_Element* elem);
71 bool Init(
udword nb_objects,
const AABB** boxes);
74 void GetPairs(
Pairs& pairs)
const;
75 void GetPairs(
PairCallback callback,
void* user_data)
const;
81 SAP_EndPoint* mList[3];
83 bool CheckListsIntegrity();
86 #endif //__OPC_SWEEPANDPRUNE_H__ udword mNbUsedElements
Number of used elements.
#define null
our own NULL pointer
BOOL(* PairCallback)(udword id0, udword id1, void *user_data)
int BOOL
Another boolean type.
unsigned int udword
sizeof(udword) must be 4
SAP_Element * mElementPool
Array of mNbElements elements.
udword mNbObjects
Max number of objects we can handle.
SAP_Element ** mArray
Pointers to pool.
SAP_Element * mFirstFree
First free element in the pool.
udword mNbElements
Total number of elements in the pool.