MayaFlux 1.0.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 337 of file GraphicsSubsystem.cpp.

338{
339 for (auto& window : m_registered_windows) {
340 if (window->should_close() && window->is_graphics_registered()) {
342 m_backend->unregister_window(window);
343 window->set_graphics_registered(false);
344 }
345 }
346
348 std::remove_if(
350 [](const std::shared_ptr<Window>& win) { return win->should_close(); }),
352}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
void destroy_window(const std::shared_ptr< Core::Window > &window)
Detach graphics presentation for a window in this token domain.
std::vector< std::shared_ptr< Window > > m_registered_windows
SubsystemProcessingHandle * m_handle
Reference to processing handle.
std::unique_ptr< IGraphicsBackend > m_backend
BufferProcessingHandle buffers
Buffer processing interface.

References MayaFlux::Core::SubsystemProcessingHandle::buffers, MayaFlux::Core::BufferProcessingHandle::destroy_window(), m_backend, m_handle, m_registered_windows, and window.

Referenced by process().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: