MayaFlux 0.3.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 273 of file GlfwWindow.cpp.

274{
275 auto* win = static_cast<GlfwWindow*>(glfwGetWindowUserPointer(window));
276 if (!win)
277 return;
278
279 WindowEvent event;
281 event.timestamp = glfwGetTime();
282
283 win->m_event_source.signal(event);
284
285 if (win->m_event_callback) {
286 win->m_event_callback(event);
287 }
288}
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: