File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ glm::mat4 computeHomeView();
101101void resetCameraToHomeView ();
102102void flyToHomeView ();
103103void setViewCenter (glm::vec3 newCenter, bool flyTo = false );
104+ glm::vec3 getViewCenter ();
104105
105106// These both set the new value, and project the current view as-needed to conform to the new setting
106107void updateViewAndChangeNavigationStyle (NavigateStyle newStyle, bool flyTo = false );
Original file line number Diff line number Diff line change @@ -561,6 +561,8 @@ void updateViewAndChangeCenter(glm::vec3 newCenter, bool flyTo) {
561561
562562void setViewCenter (glm::vec3 newCenter, bool flyTo) { updateViewAndChangeCenter (newCenter, flyTo); }
563563
564+ glm::vec3 getViewCenter () { return view::viewCenter; }
565+
564566void lookAt (glm::vec3 cameraLocation, glm::vec3 target, bool flyTo) {
565567 lookAt (cameraLocation, target, getUpVec (), flyTo);
566568}
You can’t perform that action at this time.
0 commit comments