From de7d61978bcafec362c4f643ab4aea0727ae4249 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 May 2011 08:17:02 +0000 Subject: [PATCH] Added CullVisitor::setCalculatedNearPlane() and setCalculatedFarPlane(() methods to enable 3rd party code to manage the compute of the near/far planes. --- include/osgUtil/CullVisitor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/osgUtil/CullVisitor b/include/osgUtil/CullVisitor index 42d31acf5..97d1daad4 100644 --- a/include/osgUtil/CullVisitor +++ b/include/osgUtil/CullVisitor @@ -204,8 +204,10 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac _currentRenderBin = rb; } + void setCalculatedNearPlane(value_type value) { _computed_znear = value; } inline value_type getCalculatedNearPlane() const { return _computed_znear; } + void setCalculatedFarPlane(value_type value) { _computed_zfar = value; } inline value_type getCalculatedFarPlane() const { return _computed_zfar; } value_type computeNearestPointInFrustum(const osg::Matrix& matrix, const osg::Polytope::PlaneList& planes,const osg::Drawable& drawable);