1
0
Fork 0

fgviewer: add DatabasePager.

This commit is contained in:
Mathias Froehlich 2011-12-16 21:45:33 +01:00
parent 7f528bbd31
commit 33630ffe33

View file

@ -197,5 +197,9 @@ main(int argc, char** argv)
// pass the loaded scene graph to the viewer. // pass the loaded scene graph to the viewer.
viewer.setSceneData(loadedModel.get()); viewer.setSceneData(loadedModel.get());
// We want on demand database paging
viewer.setDatabasePager(new osgDB::DatabasePager);
viewer.getDatabasePager()->setUpThreads(1, 1);
return viewer.run(); return viewer.run();
} }