Removed deprecated API in preparation for 0.9.9 release.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user