MayaFlux 0.4.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 117 of file SubsystemManager.cpp.

118{
119 if (auto subsystem = std::dynamic_pointer_cast<GraphicsSubsystem>(get_subsystem(SubsystemType::GRAPHICS))) {
120 return subsystem;
121 }
122 return nullptr;
123}
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: