#include "CheckSceneryVisitor.hxx"
#include "SGPagedLOD.hxx"
-#include <simgear/Math/SGMath.hxx>
+#include <simgear/math/SGMath.hxx>
using namespace simgear;
-CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, osg::Vec3 &position, double range)
+CheckSceneryVisitor::CheckSceneryVisitor(osgDB::DatabasePager* dbp, const osg::Vec3 &position, double range,
+ osg::FrameStamp* framestamp)
:osg::NodeVisitor(osg::NodeVisitor::NODE_VISITOR,
osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN),
-_loaded(true), _position(position), _range(range), _dbp(dbp)
+_position(position), _range(range), _loaded(true), _dbp(dbp), _framestamp(framestamp)
{
_viewMatrices.push_back(osg::Matrix::identity());
}
// if the DatabasePager would load LODs while the splashscreen
// is there, we could just wait for the models to be loaded
// by only setting setLoaded(false) here
- sgplod->forceLoad(_dbp);
+ sgplod->forceLoad(_dbp,_framestamp, getNodePath());
setLoaded(false);
}
}