MCPcopy Create free account
hub / github.com/aardappel/lobster / GetNext

Method GetNext

dev/include/Box2D/Particle/b2ParticleSystem.cpp:367–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367int32 b2ParticleSystem::InsideBoundsEnumerator::GetNext()
368{
369 while (m_first < m_last)
370 {
371 uint32 xTag = m_first->tag & xMask;
372#if B2_ASSERT_ENABLED
373 uint32 yTag = m_first->tag & yMask;
374 b2Assert(yTag >= m_yLower);
375 b2Assert(yTag <= m_yUpper);
376#endif
377 if (xTag >= m_xLower && xTag <= m_xUpper)
378 {
379 return (m_first++)->index;
380 }
381 m_first++;
382 }
383 return b2_invalidParticleIndex;
384}
385
386b2ParticleSystem::b2ParticleSystem(const b2ParticleSystemDef* def,
387 b2World* world) :

Callers 8

ComputeDepthMethod · 0.45
ReportFixtureMethod · 0.45
SolveBarrierMethod · 0.45
UpdateAllGroupFlagsMethod · 0.45
SolveRigidMethod · 0.45
SolveZombieMethod · 0.45
RotateBufferMethod · 0.45
RayCastMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected