Removed deprecated API in preparation for 0.9.9 release.

This commit is contained in:
Robert Osfield
2005-05-09 13:09:07 +00:00
parent 5e23536683
commit 538ced579e
22 changed files with 8 additions and 99 deletions

View File

@@ -385,7 +385,7 @@ osg::Geode* ForestTechniqueManager::createTerrain(const osg::Vec3& origin, const
{
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(numColumns,numRows);
grid->allocate(numColumns,numRows);
grid->setOrigin(origin);
grid->setXInterval(size.x()/(float)(numColumns-1));
grid->setYInterval(size.y()/(float)(numRows-1));

View File

@@ -161,7 +161,7 @@ void build_world(osg::Group *root)
float z_scale = scale*3.0f;
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(38,39);
grid->allocate(38,39);
grid->setXInterval(scale);
grid->setYInterval(scale);

View File

@@ -69,7 +69,7 @@ osg::Node* createBase(const osg::Vec3& center,float radius)
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(38,39);
grid->allocate(38,39);
grid->setOrigin(center+osg::Vec3(-radius,-radius,0.0f));
grid->setXInterval(radius*2.0f/(float)(38-1));
grid->setYInterval(radius*2.0f/(float)(39-1));

View File

@@ -46,7 +46,7 @@ osg::Geode* createShapes( char* img_filename )
geode->addDrawable(new osg::ShapeDrawable(new osg::Capsule(osg::Vec3(8.0f,0.0f,0.0f),radius,height),hints));
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(38,39);
grid->allocate(38,39);
grid->setXInterval(0.28f);
grid->setYInterval(0.28f);

View File

@@ -192,7 +192,7 @@ void build_world(osg::Group *root)
float z_scale = scale*3.0f;
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(38,39);
grid->allocate(38,39);
grid->setXInterval(scale);
grid->setYInterval(scale);

View File

@@ -159,7 +159,7 @@ osg::Node* createBase(const osg::Vec3& center,float radius)
osg::HeightField* grid = new osg::HeightField;
grid->allocateGrid(38,39);
grid->allocate(38,39);
grid->setOrigin(center+osg::Vec3(-radius,-radius,0.0f));
grid->setXInterval(radius*2.0f/(float)(38-1));
grid->setYInterval(radius*2.0f/(float)(39-1));