MayaFlux 1.0.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 148 of file ViewportPreset.cpp.

153{
154 for (const auto& buf : window->get_rendering_buffers()) {
155 auto rp = buf->get_render_processor();
156 if (!rp) {
157 continue;
158 }
159 bind_fly_preset(window, rp, config, key_map, name);
160 }
161}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
std::string name
Definition VKDevice.cpp:123

References bind_fly_preset(), name, and window.

+ Here is the call graph for this function: