MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / onGLFWwindowSizeCallback

Function onGLFWwindowSizeCallback

Source/AppDelegate.cpp:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108#ifdef AX_PLATFORM_PC
109static void onGLFWwindowSizeCallback(GLFWwindow*, int w, int h)
110{
111 auto director = Director::getInstance();
112 auto glView = director->getGLView();
113
114 glView->setFrameSize(w, h);
115 setupDesignResolution(glView);
116
117 director->getEventDispatcher()->dispatchCustomEvent(GLViewImpl::EVENT_WINDOW_RESIZED, nullptr);
118}
119#endif
120
121

Callers

nothing calls this directly

Calls 1

setupDesignResolutionFunction · 0.85

Tested by

no test coverage detected