| 279 | } |
| 280 | |
| 281 | void SampleApp::runInternal() |
| 282 | { |
| 283 | // Load and run |
| 284 | onLoad(getRenderContext()); |
| 285 | |
| 286 | mProgressBar.close(); |
| 287 | |
| 288 | mFrameRate.reset(); |
| 289 | |
| 290 | // If a window was created, run the message loop, otherwise just run a render loop. |
| 291 | if (mpWindow) |
| 292 | { |
| 293 | mpWindow->msgLoop(); |
| 294 | } |
| 295 | else |
| 296 | { |
| 297 | while (!mShouldTerminate) |
| 298 | handleRenderFrame(); |
| 299 | } |
| 300 | |
| 301 | onShutdown(); |
| 302 | } |
| 303 | |
| 304 | bool screenSizeUI(Gui::Widgets& widget, uint2& screenDims) |
| 305 | { |
nothing calls this directly
no test coverage detected