| 82 | } |
| 83 | |
| 84 | void Viewport::init() |
| 85 | { |
| 86 | viewportGL_ = ViewportGL(); |
| 87 | initBaseAxes(); |
| 88 | updateSceneBox_(); |
| 89 | auto sceneCenter = sceneBox_.valid() ? sceneBox_.center() : Vector3f(); |
| 90 | setRotationPivot_( params_.staticRotationPivot ? *params_.staticRotationPivot : sceneCenter ); |
| 91 | setupProjMatrix_(); |
| 92 | setupAxesViewProjMatrix_(); |
| 93 | } |
| 94 | |
| 95 | void Viewport::shut() |
| 96 | { |
no test coverage detected