Window resize event handler
| 503 | |
| 504 | /// Window resize event handler |
| 505 | bool TestbedApplication::onWindowResized(int width, int height) { |
| 506 | |
| 507 | if (!mIsInitialized) return false; |
| 508 | |
| 509 | mGui.onWindowResizeEvent(width, height); |
| 510 | |
| 511 | // Resize the camera viewport |
| 512 | mCurrentScene->reshape(width, height); |
| 513 | |
| 514 | // Update the window size of the scene |
| 515 | mCurrentScene->setWindowDimension(width, height); |
| 516 | |
| 517 | mWidth = width; |
| 518 | mHeight = height; |
| 519 | |
| 520 | return true; |
| 521 | } |
| 522 | |
| 523 | // Change the current scene |
| 524 | void TestbedApplication::switchScene(Scene* newScene) { |
no test coverage detected