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

Method onWindowResized

testbed/src/TestbedApplication.cpp:505–521  ·  view source on GitHub ↗

Window resize event handler

Source from the content-addressed store, hash-verified

503
504/// Window resize event handler
505bool 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
524void TestbedApplication::switchScene(Scene* newScene) {

Callers 1

startMethod · 0.80

Calls 3

onWindowResizeEventMethod · 0.80
reshapeMethod · 0.80
setWindowDimensionMethod · 0.80

Tested by

no test coverage detected