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 329 of file GraphicsSubsystem.cpp.

330{
331 for (auto& window : m_registered_windows) {
332 if (window->should_close() && window->is_graphics_registered()) {
333 m_backend->unregister_window(window);
334 window->set_graphics_registered(false);
335 }
336 }
337
339 std::remove_if(
341 [](const std::shared_ptr<Window>& win) { return win->should_close(); }),
343}
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: