Converted .ive plugin from using C++ exceptions to using a local equivelant, enabling the build on embedded systems.

This commit is contained in:
Robert Osfield
2009-11-17 12:54:55 +00:00
parent a8abfd64c4
commit f417706b06
128 changed files with 790 additions and 655 deletions

View File

@@ -28,7 +28,7 @@ void Texture3D::write(DataOutputStream* out){
((ive::Texture*)(tex))->write(out);
}
else
throw Exception("Texture3D::write(): Could not cast this osg::Texture3D to an osg::Texture.");
out_THROW_EXCEPTION("Texture3D::write(): Could not cast this osg::Texture3D to an osg::Texture.");
// Write Texture3D's properties.
// Write image.
@@ -48,7 +48,7 @@ void Texture3D::read(DataInputStream* in){
((ive::Texture*)(tex))->read(in);
}
else
throw Exception("Texture3D::read(): Could not cast this osg::Texture3D to an osg::Texture.");
in_THROW_EXCEPTION("Texture3D::read(): Could not cast this osg::Texture3D to an osg::Texture.");
// Read image.
// Should we read image data from stream
@@ -58,6 +58,6 @@ void Texture3D::read(DataInputStream* in){
}
}
else{
throw Exception("Texture3D::read(): Expected Texture3D identification.");
in_THROW_EXCEPTION("Texture3D::read(): Expected Texture3D identification.");
}
}