MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ glfw_window_close_callback()

void MayaFlux::Core::GlfwWindow::glfw_window_close_callback ( GLFWwindow *  window)
staticprivate

Definition at line 268 of file GlfwWindow.cpp.

269{
270 auto* win = static_cast<GlfwWindow*>(glfwGetWindowUserPointer(window));
271 if (!win)
272 return;
273
274 WindowEvent event;
276 event.timestamp = glfwGetTime();
277
278 win->m_event_source.signal(event);
279
280 if (win->m_event_callback) {
281 win->m_event_callback(event);
282 }
283}
GlfwWindow(const WindowCreateInfo &create_info, const GraphicsSurfaceInfo &surface_info, GlobalGraphicsConfig::GraphicsApi api, GlfwPreInitConfig pre_init_config={})
Creates a window with the given configuration.

References MayaFlux::Core::WindowEvent::type, and MayaFlux::Core::WINDOW_CLOSED.

Referenced by setup_callbacks().

+ Here is the caller graph for this function: