MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / init

Method init

physx/source/scenequery/src/SqAABBTree.cpp:320–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320bool Sq::BitArray::init(PxU32 nb_bits)
321{
322 mSize = BitsToDwords(nb_bits);
323 // Get ram for n bits
324 PX_FREE(mBits);
325 mBits = reinterpret_cast<PxU32*>(PX_ALLOC(sizeof(PxU32)*mSize, "BitArray::mBits"));
326 // Set all bits to 0
327 clearAll();
328 return true;
329}
330
331void Sq::BitArray::resize(PxU32 maxBitNumber)
332{

Callers 1

markNodeForRefitMethod · 0.45

Calls 1

BitsToDwordsFunction · 0.85

Tested by

no test coverage detected