|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API 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.
Scaling by zoom ensures pan speed stays proportionate to zoom level.
| state | PanZoom2D state (pan mutated). |
| dx | Horizontal pixel delta (positive = right). |
| dy | Vertical pixel delta (positive = up). |
| viewport_width | Framebuffer width in pixels. |
| viewport_height | Framebuffer height in pixels. |
Definition at line 31 of file PanZoom2DState.cpp.
References MayaFlux::Kinesis::PanZoom2DState::pan, and MayaFlux::Kinesis::PanZoom2DState::zoom.
Referenced by MayaFlux::bind_pan_zoom_preset().
Here is the caller graph for this function: