MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
PanZoom2DState.cpp File Reference
#include "PanZoom2DState.hpp"
+ Include dependency graph for PanZoom2DState.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Kinesis
 

Functions

void MayaFlux::Kinesis::apply_pan_zoom_pan (PanZoom2DState &state, float dx, float dy, float viewport_width, float viewport_height)
 Pan by a pixel delta, scaled to world units by the current zoom level.
 
void MayaFlux::Kinesis::apply_pan_zoom_scroll (PanZoom2DState &state, float ticks)
 Zoom by multiplying the half-height, clamped to [min_zoom, max_zoom].
 
ViewTransform MayaFlux::Kinesis::compute_pan_zoom_view_transform (const PanZoom2DState &state, float aspect)
 Build a ViewTransform from the current PanZoom2DState.
 
PanZoom2DState MayaFlux::Kinesis::make_pan_zoom_state (const PanZoom2DConfig &config)
 Construct a PanZoom2DState from a PanZoom2DConfig.