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

◆ cleanup_closed_windows()

void MayaFlux::Core::GraphicsSubsystem::cleanup_closed_windows ( )
private

Cleanup resources for windows that have been closed.

Definition at line 327 of file GraphicsSubsystem.cpp.

328{
329 for (auto& window : m_registered_windows) {
330 if (window->should_close() && window->is_graphics_registered()) {
331 m_backend->unregister_window(window);
332 window->set_graphics_registered(false);
333 }
334 }
335
337 std::remove_if(
339 [](const std::shared_ptr<Window>& win) { return win->should_close(); }),
341}
std::vector< std::shared_ptr< Window > > m_registered_windows
std::unique_ptr< IGraphicsBackend > m_backend

References m_backend, and m_registered_windows.

Referenced by process().

+ Here is the caller graph for this function: