|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API ViewTransform MayaFlux::Kinesis::compute_pan_zoom_view_transform | ( | const PanZoom2DState & | state, |
| float | aspect | ||
| ) |
Build a ViewTransform from the current PanZoom2DState.
View matrix is identity. Projection is a symmetric ortho frustum centred on state.pan with half-height state.zoom.
| state | PanZoom2D state (read-only). |
| aspect | Framebuffer width / height. |
Definition at line 18 of file PanZoom2DState.cpp.
References MayaFlux::Kinesis::PanZoom2DState::far_plane, MayaFlux::Kinesis::PanZoom2DState::near_plane, MayaFlux::Kinesis::PanZoom2DState::pan, and MayaFlux::Kinesis::PanZoom2DState::zoom.
Referenced by MayaFlux::bind_pan_zoom_preset().
Here is the caller graph for this function: