Added ability to alter the verbosity of the notify messages with the

running of osgTerrain::DataSet via a static s/getNotifyOffset(int) method.
This commit is contained in:
Robert Osfield
2004-10-05 15:08:54 +00:00
parent 68c7a47388
commit 3b8abfa875
3 changed files with 182 additions and 160 deletions

View File

@@ -26,7 +26,6 @@ class GraphicsContext {
rs->useBorder(false);
rs->useConfigEventThread(false);
rs->realize();
std::cout<<"Realized window"<<std::endl;
}
virtual ~GraphicsContext()
@@ -44,6 +43,9 @@ osg::Node* createEarth()
{
std::string filename = osgDB::findDataFile("Images/land_shallow_topo_2048.jpg");
// make osgTerrain::DataSet quieter..
osgTerrain::DataSet::setNotifyOffset(1);
osg::ref_ptr<osgTerrain::DataSet> dataSet = new osgTerrain::DataSet;
// register the source imagery