Added osg::CullSettings class as a way of collecting all the various

settings related to the cull traversal in one place, so we can keep APIs
for settings these values more consistent.
This commit is contained in:
Robert Osfield
2004-04-30 15:35:31 +00:00
parent 7596b3b361
commit 5836d60fbd
11 changed files with 300 additions and 210 deletions

View File

@@ -12,6 +12,7 @@
#include <osgDB/ReadFile>
#include <osgUtil/Optimizer>
#include <osgProducer/Viewer>
#include <osg/CoordinateSystemNode>
int main( int argc, char **argv )
{
@@ -84,10 +85,23 @@ int main( int argc, char **argv )
osgUtil::Optimizer optimizer;
optimizer.optimize(loadedModel.get());
#if 0
osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode;
csn->addChild(loadedModel.get());
csn->setEllipsoidModel(new osg::EllipsoidModel());
osg::NodePath nodepath;
nodepath.push_back(csn);
viewer.setCoordindateSystemNodePath(nodepath);
// set the scene to render
viewer.setSceneData(csn);
#else
viewer.setSceneData(loadedModel.get());
#endif
// create the windows and run the threads.
viewer.realize();