Rearranged the traversal and initialization of TerrainTechnique

This commit is contained in:
Robert Osfield
2007-03-27 16:01:01 +00:00
parent e76e4e82db
commit 4688d5ae8e
6 changed files with 69 additions and 34 deletions

View File

@@ -28,14 +28,15 @@ GeometryTechnique::~GeometryTechnique()
{
}
void GeometryTechnique::initialize()
void GeometryTechnique::init()
{
osg::notify(osg::NOTICE)<<"Doing initalize"<<std::endl;
osg::notify(osg::NOTICE)<<"Doing init()"<<std::endl;
_geode = new osg::Geode;
_geometry = new osg::Geometry;
_geode->addDrawable(_geometry.get());
_dirty = false;
}
@@ -54,3 +55,13 @@ void GeometryTechnique::cull(osgUtil::CullVisitor* nv)
_geode->accept(*nv);
}
}
void GeometryTechnique::cleanSceneGraph()
{
osg::notify(osg::NOTICE)<<"Cleaning scene graph"<<std::endl;
}
void GeometryTechnique::dirty()
{
TerrainTechnique::dirty();
}