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

◆ bind_fly_preset() [2/2]

MAYAFLUX_API void MayaFlux::bind_fly_preset ( const std::shared_ptr< Core::Window > &  window,
const ViewportPresetConfig config = {},
const Kinesis::FlyKeyMap key_map = {},
const std::string &  name = "default" 
)

Bind the fly navigation controller to all RenderProcessors currently registered against a window.

Calls bind_fly_preset(window, rp, config, key_map, name) for every buffer registered with the window at call time that returns a non-null RenderProcessor. Buffers registered after this call are not covered.

Parameters
windowWindow supplying input events
configCamera/motion tuning parameters
key_mapKey assignments; defaults to WASD/QE + KP snaps
namePreset name forwarded to bind_fly_preset()

Definition at line 147 of file ViewportPreset.cpp.

152{
153 for (const auto& buf : window->get_rendering_buffers()) {
154 auto rp = buf->get_render_processor();
155 if (!rp) {
156 continue;
157 }
158 bind_fly_preset(window, rp, config, key_map, name);
159 }
160}

References bind_fly_preset().

+ Here is the call graph for this function: