| 63 | } // namespace |
| 64 | |
| 65 | void 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 | |
| 73 | PhysicsDemo::PhysicsDemo() : _spriteTexture(nullptr), _ball(nullptr), _debugDraw(false) {} |
| 74 |
no test coverage detected