MayaFlux 0.1.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 258 of file GlfwWindow.cpp.

259{
260 auto* win = static_cast<GlfwWindow*>(glfwGetWindowUserPointer(window));
261 if (!win)
262 return;
263
264 WindowEvent event;
266 event.timestamp = glfwGetTime();
267
268 win->m_event_source.signal(event);
269
270 if (win->m_event_callback) {
271 win->m_event_callback(event);
272 }
273}
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: