MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / OnWindowClosed

Method OnWindowClosed

ZEngine/src/GlfwWindow/OpenGLWindow.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 bool OpenGLWindow::OnWindowClosed(WindowClosedEvent& event) {
252 glfwSetWindowShouldClose(m_native_window, GLFW_TRUE);
253 ZENGINE_CORE_INFO("Window has been closed");
254
255 Event::EngineClosedEvent e(event.GetName().c_str());
256 Event::EventDispatcher event_dispatcher(e);
257 event_dispatcher.Dispatch<Event::EngineClosedEvent>(std::bind(&Engine::OnEngineClosed, m_engine, std::placeholders::_1));
258 return true;
259 }
260
261 bool OpenGLWindow::OnWindowResized(WindowResizedEvent& event) {
262 ZENGINE_CORE_INFO("Window has been resized");

Callers

nothing calls this directly

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected