MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / render

Method render

testbed/src/TestbedApplication.cpp:491–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void 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
505bool TestbedApplication::onWindowResized(int width, int height) {

Callers

nothing calls this directly

Calls 1

setViewportMethod · 0.80

Tested by

no test coverage detected