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

◆ get_graphics_subsystem()

std::shared_ptr< GraphicsSubsystem > MayaFlux::Core::SubsystemManager::get_graphics_subsystem ( )

Get typed access to the graphics subsystem.

Returns
Shared pointer to GraphicsSubsystem or nullptr if not created

Convenience method that automatically casts to GraphicsSubsystem type. Equivalent to dynamic_cast on get_subsystem(SubsystemType::GRAPHICS).

Definition at line 86 of file SubsystemManager.cpp.

87{
88 if (auto subsystem = std::dynamic_pointer_cast<GraphicsSubsystem>(get_subsystem(SubsystemType::GRAPHICS))) {
89 return subsystem;
90 }
91 return nullptr;
92}
std::shared_ptr< ISubsystem > get_subsystem(SubsystemType type)
Get access to a specific subsystem by type.

References get_subsystem(), and MayaFlux::Core::GRAPHICS.

Referenced by stop_graphics_subsystem().

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