| 99 | } |
| 100 | |
| 101 | void AppImplLinux::run() |
| 102 | { |
| 103 | mApp->privateSetup__(); |
| 104 | mSetupHasBeenCalled = true; |
| 105 | |
| 106 | // issue initial app activation event |
| 107 | mApp->emitDidBecomeActive(); |
| 108 | |
| 109 | // issue initial resize revent |
| 110 | for( auto &window : mWindows ) { |
| 111 | window->resize(); |
| 112 | } |
| 113 | |
| 114 | // initialize our next frame time |
| 115 | mNextFrameTime = getElapsedSeconds(); |
| 116 | |
| 117 | while( ! mShouldQuit ) { |
| 118 | |
| 119 | // update and draw |
| 120 | mApp->privateUpdate__(); |
| 121 | for( auto &window : mWindows ) { |
| 122 | window->draw(); |
| 123 | } |
| 124 | |
| 125 | // Sleep until the next frame |
| 126 | if( ! mShouldQuit ) { |
| 127 | sleepUntilNextFrame(); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | mApp->emitCleanup(); |
| 132 | } |
| 133 | |
| 134 | WindowImplLinux* AppImplLinux::findSharedRendererWindow( const RendererRef &searchRenderer ) |
| 135 | { |
nothing calls this directly
no test coverage detected