| 555 | } |
| 556 | |
| 557 | PhysicsClientExample::~PhysicsClientExample() |
| 558 | { |
| 559 | if (m_physicsClientHandle) |
| 560 | { |
| 561 | b3ProcessServerStatus(m_physicsClientHandle); |
| 562 | b3DisconnectSharedMemory(m_physicsClientHandle); |
| 563 | } |
| 564 | |
| 565 | if (m_options == eCLIENTEXAMPLE_SERVER) |
| 566 | { |
| 567 | bool deInitializeSharedMemory = true; |
| 568 | m_physicsServer.disconnectSharedMemory(deInitializeSharedMemory); |
| 569 | } |
| 570 | |
| 571 | if (m_canvas) |
| 572 | { |
| 573 | if (m_canvasRGBIndex >= 0) |
| 574 | m_canvas->destroyCanvas(m_canvasRGBIndex); |
| 575 | if (m_canvasDepthIndex >= 0) |
| 576 | m_canvas->destroyCanvas(m_canvasDepthIndex); |
| 577 | if (m_canvasSegMaskIndex >= 0) |
| 578 | m_canvas->destroyCanvas(m_canvasSegMaskIndex); |
| 579 | } |
| 580 | |
| 581 | b3Printf("~PhysicsClientExample\n"); |
| 582 | } |
| 583 | |
| 584 | void PhysicsClientExample::createButton(const char* name, int buttonId, bool isTrigger) |
| 585 | { |
nothing calls this directly
no test coverage detected