| 667 | } |
| 668 | |
| 669 | void VideoDriver_SDL_Base::MainLoop() |
| 670 | { |
| 671 | #ifdef __EMSCRIPTEN__ |
| 672 | /* Run the main loop event-driven, based on RequestAnimationFrame. */ |
| 673 | emscripten_set_main_loop_arg(&this->EmscriptenLoop, this, 0, 1); |
| 674 | #else |
| 675 | this->StartGameThread(); |
| 676 | |
| 677 | while (!_exit_game) { |
| 678 | LoopOnce(); |
| 679 | } |
| 680 | |
| 681 | this->StopGameThread(); |
| 682 | #endif |
| 683 | } |
| 684 | |
| 685 | bool VideoDriver_SDL_Base::ChangeResolution(int w, int h) |
| 686 | { |
no test coverage detected