Added support for reading and writing osgTerrain objects

This commit is contained in:
Robert Osfield
2008-01-09 16:35:55 +00:00
parent 9bae59bd6e
commit 803f70c2fb
15 changed files with 930 additions and 193 deletions

View File

@@ -89,6 +89,8 @@
#include "Text.h"
#include "Terrain.h"
#include <osg/Endian>
#include <osg/Notify>
#include <osg/io_utils>
@@ -1451,6 +1453,10 @@ osg::Node* DataInputStream::readNode()
node = new osgFX::MultiTextureControl();
((ive::MultiTextureControl*)(node))->read(this);
}
else if(nodeTypeID== IVETERRAIN){
node = new osgTerrain::Terrain();
((ive::Terrain*)(node))->read(this);
}
else{
throw Exception("Unknown node identification in DataInputStream::readNode()");
}