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

◆ bind_pan_zoom_preset() [1/2]

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

Bind the 2D pan/zoom controller to all RenderProcessors currently registered against a window.

Parameters
windowWindow supplying input events
configPan/zoom tuning parameters
key_mapInput assignments
namePreset name forwarded to the per-processor overload

Definition at line 304 of file ViewportPreset.cpp.

309{
310 for (const auto& buf : window->get_rendering_buffers()) {
311 auto rp = buf->get_render_processor();
312 if (!rp)
313 continue;
314 bind_pan_zoom_preset(window, rp, config, key_map, name);
315 }
316}
void bind_pan_zoom_preset(const std::shared_ptr< Core::Window > &window, const std::shared_ptr< Buffers::RenderProcessor > &processor, const Kinesis::PanZoom2DConfig &config, const Kinesis::PanZoom2DKeyMap &key_map, const std::string &name)
Bind the 2D pan/zoom controller to a window and render processor.

References bind_pan_zoom_preset().

+ Here is the call graph for this function: