------------------------------------------------------------------------------
| 651 | |
| 652 | //------------------------------------------------------------------------------ |
| 653 | void vtkWebAssemblyRenderWindowInteractor::TerminateApp(void) |
| 654 | { |
| 655 | this->Done = true; |
| 656 | |
| 657 | auto& internals = (*this->Internals); |
| 658 | |
| 659 | this->UnRegisterUICallbacks(); |
| 660 | |
| 661 | // Only post a quit message if Start was called... |
| 662 | if (internals.StartedMessageLoop) |
| 663 | { |
| 664 | if (!emscripten_has_asyncify()) |
| 665 | { |
| 666 | // If we are not using asyncify, we need to stop the main loop. |
| 667 | emscripten_cancel_main_loop(); |
| 668 | } |
| 669 | internals.StartedMessageLoop = false; |
| 670 | } |
| 671 | internals.ExpandedCanvasToContainerElement = false; |
| 672 | } |
| 673 | |
| 674 | //------------------------------------------------------------------------------ |
| 675 | int vtkWebAssemblyRenderWindowInteractor::InternalCreateTimer( |
no test coverage detected