| 489 | } |
| 490 | |
| 491 | void TestbedApplication::render() { |
| 492 | |
| 493 | int bufferWidth, bufferHeight; |
| 494 | glfwMakeContextCurrent(mWindow); |
| 495 | glfwGetFramebufferSize(mWindow, &bufferWidth, &bufferHeight); |
| 496 | |
| 497 | // Set the viewport of the scene |
| 498 | mCurrentScene->setViewport(0, 0, bufferWidth, bufferHeight); |
| 499 | |
| 500 | // Render the scene |
| 501 | mCurrentScene->render(); |
| 502 | } |
| 503 | |
| 504 | /// Window resize event handler |
| 505 | bool TestbedApplication::onWindowResized(int width, int height) { |
nothing calls this directly
no test coverage detected