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

◆ glfw_framebuffer_size_callback()

void MayaFlux::Core::GlfwWindow::glfw_framebuffer_size_callback ( GLFWwindow *  window,
int  width,
int  height 
)
staticprivate

Definition at line 310 of file GlfwWindow.cpp.

311{
312 auto* win = static_cast<GlfwWindow*>(glfwGetWindowUserPointer(window));
313 if (!win)
314 return;
315
316 WindowEvent event;
318 event.timestamp = glfwGetTime();
319 event.data = WindowEvent::ResizeData {
320 .width = static_cast<uint32_t>(width),
321 .height = static_cast<uint32_t>(height)
322 };
323
324 win->m_event_source.signal(event);
325
326 if (win->m_event_callback) {
327 win->m_event_callback(event);
328 }
329}
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::FRAMEBUFFER_RESIZED, MayaFlux::Core::WindowEvent::type, and MayaFlux::Core::WindowEvent::ResizeData::width.

Referenced by setup_callbacks().

+ Here is the caller graph for this function: