MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / syncFramebufferSize

Method syncFramebufferSize

App/GUI/io/window_events/WindowEvents.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void WindowEvents::syncFramebufferSize(int width, int height, bool updateInterface) {
33 if (width <= 0 || height <= 0) {
34 return;
35 }
36
37 (*renderer)->camera.setScreenSize(glm::vec2(static_cast<float>(width), static_cast<float>(height)));
38 WGPUContext::instance().resize(static_cast<uint32_t>(width), static_cast<uint32_t>(height));
39}

Callers

nothing calls this directly

Calls 2

setScreenSizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected