MayaFlux 0.1.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 323 of file GraphicsSubsystem.cpp.

324{
325 for (auto& window : m_registered_windows) {
326 if (window->should_close() && window->is_graphics_registered()) {
327 m_backend->unregister_window(window);
328 window->set_graphics_registered(false);
329 }
330 }
331
333 std::remove_if(
335 [](const std::shared_ptr<Window>& win) { return win->should_close(); }),
337}
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: