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

◆ register_callbacks()

void MayaFlux::Core::GraphicsSubsystem::register_callbacks ( )
overridevirtual

Register callback hooks for this domain.

Sets up domain-specific callbacks that will trigger token-based processing. This is where subsystems connect to their respective backend systems and establish the event loops that drive processing.

Examples:

  • Audio: RtAudio callback registration for real-time audio processing
  • Visual: Vulkan present callback / OpenFrameworks draw loop integration
  • Windowing: GLFW event loops for UI and input handling
  • Custom: Application-specific timing or event-driven processing

Called during subsystem setup before initialization. Should not start actual processing - only establish the callback infrastructure.

Implements MayaFlux::Core::ISubsystem.

Definition at line 117 of file GraphicsSubsystem.cpp.

118{
119 if (!m_is_ready) {
120 error<std::runtime_error>(
123 std::source_location::current(),
124 "Subsystem is not initialized. Please initialize before registering callbacks.");
125 }
126
128
130 "Graphics callbacks registered (self-driven mode)");
131}
#define MF_INFO(comp, ctx,...)
void register_frame_processor()
Register custom frame processor with scheduler.
@ GraphicsSubsystem
Graphics subsystem operations (Vulkan, rendering pipeline)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsSubsystem, m_is_ready, MF_INFO, and register_frame_processor().

+ Here is the call graph for this function: