MCPcopy Create free account
hub / github.com/axmolengine/axmol / toggleDebug

Method toggleDebug

tests/cpp-tests/Source/PhysicsTest/PhysicsTest.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63} // namespace
64
65void PhysicsDemo::toggleDebug()
66{
67# if defined(AX_ENABLE_PHYSICS)
68 _debugDraw = !_debugDraw;
69 _physicsWorld->setDebugDrawMask(_debugDraw ? PhysicsWorld::DEBUGDRAW_ALL : PhysicsWorld::DEBUGDRAW_NONE);
70# endif
71}
72
73PhysicsDemo::PhysicsDemo() : _spriteTexture(nullptr), _ball(nullptr), _debugDraw(false) {}
74

Callers 1

onEnterMethod · 0.80

Calls 1

setDebugDrawMaskMethod · 0.80

Tested by

no test coverage detected