#endif
#include <osgDB/ReadFile>
+#include <osgDB/Input>
+#include <osgDB/ParameterOutput>
#include <simgear/debug/logstream.hxx>
#include <simgear/structure/OSGVersion.hxx>
return true;
}
-void SGPagedLOD::forceLoad(osgDB::DatabasePager *dbp)
+void SGPagedLOD::forceLoad(osgDB::DatabasePager *dbp, osg::FrameStamp* framestamp)
{
//SG_LOG(SG_GENERAL, SG_ALERT, "SGPagedLOD::forceLoad(" <<
//getFileName(getNumChildren()) << ")");
unsigned childNum = getNumChildren();
setTimeStamp(childNum, 0);
double priority=1.0;
- dbp->requestNodeFile(getFileName(childNum),this,priority,0,
+ dbp->requestNodeFile(getFileName(childNum),this,priority,framestamp,
getDatabaseRequest(childNum),
_readerWriterOptions.get());
}
+bool SGPagedLOD_writeLocalData(const Object& obj, osgDB::Output& fw)
+{
+ return true;
+}
+
+namespace
+{
+osgDB::RegisterDotOsgWrapperProxy sgPagedLODProxy
+(
+ new SGPagedLOD,
+ "simgear::SGPagedLOD",
+ "Object Node LOD PagedLOD SGPagedLOD Group",
+ 0,
+ &SGPagedLOD_writeLocalData
+ );
+}