Added CullVisitor::setCalculatedNearPlane() and setCalculatedFarPlane(() methods to enable 3rd party code to manage the compute of the near/far planes.

This commit is contained in:
Robert Osfield 2011-05-23 08:17:02 +00:00
parent 335bcf66f8
commit de7d61978b

View File

@ -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);