MCPcopy Create free account
hub / github.com/chrxh/alien / framebufferSizeCallback

Function framebufferSizeCallback

source/Gui/MainWindow.cpp:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 void framebufferSizeCallback(GLFWwindow* window, int width, int height)
91 {
92 if (width > 0 && height > 0) {
93 SimulationView::get().resize({width, height});
94 glViewport(0, 0, width, height);
95 }
96 }
97}
98
99_MainWindow::_MainWindow(SimulationFacade const& simulationFacade, PersisterFacade const& persisterFacade, GuiLogger const& logger)

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected