MCPcopy Create free account
hub / github.com/cinder/Cinder / ~b2World

Method ~b2World

blocks/Box2D/src/Box2D/Dynamics/b2World.cpp:66–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66b2World::~b2World()
67{
68 // Some shapes allocate using b2Alloc.
69 b2Body* b = m_bodyList;
70 while (b)
71 {
72 b2Body* bNext = b->m_next;
73
74 b2Fixture* f = b->m_fixtureList;
75 while (f)
76 {
77 b2Fixture* fNext = f->m_next;
78 f->m_proxyCount = 0;
79 f->Destroy(&m_blockAllocator);
80 f = fNext;
81 }
82
83 b = bNext;
84 }
85}
86
87void b2World::SetDestructionListener(b2DestructionListener* listener)
88{

Callers

nothing calls this directly

Calls 1

DestroyMethod · 0.45

Tested by

no test coverage detected