diff --git a/include/osgUtil/SceneView b/include/osgUtil/SceneView index 50d4683f5..ddd8ce305 100644 --- a/include/osgUtil/SceneView +++ b/include/osgUtil/SceneView @@ -366,7 +366,7 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced, public osg::CullSetting ComputeStereoMatricesCallback* getComputeStereoMatricesCallback() { return _computeStereoMatricesCallback.get(); } const ComputeStereoMatricesCallback* getComputeStereoMatricesCallback() const { return _computeStereoMatricesCallback.get(); } - /** Calculate, via glUnProject, the object coordinates of a window point. + /** Calculate the object coordinates of a point in window coordinates. Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. @@ -374,8 +374,7 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced, public osg::CullSetting */ bool projectWindowIntoObject(const osg::Vec3& window,osg::Vec3& object) const; - /** Calculate, via glUnProject, the object coordinates of a window x,y - when projected onto the near and far planes. + /** Calculate the object coordinates of a window x,y when projected onto the near and far planes. Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. @@ -383,7 +382,7 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced, public osg::CullSetting */ bool projectWindowXYIntoObject(int x,int y,osg::Vec3& near_point,osg::Vec3& far_point) const; - /** Calculate, via glProject, the object coordinates of a window. + /** Calculate the window coordinates of a point in object coordinates. Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window,