Added support for osg::Image to the lua plugin.

This commit is contained in:
Robert Osfield
2014-03-06 10:27:26 +00:00
parent 076adcbd82
commit 9319350176
7 changed files with 547 additions and 21 deletions

View File

@@ -569,7 +569,7 @@ void OutputStream::writeImage( const osg::Image* img )
break;
}
writeObjectFields( img );
writeObjectFields( img, "osg::Object" );
}
// *this << END_BRACKET << std::endl;
@@ -601,6 +601,12 @@ void OutputStream::writeObjectFields( const osg::Object* obj )
{
std::string name = obj->libraryName();
name += std::string("::") + obj->className();
writeObjectFields(obj, name);
}
void OutputStream::writeObjectFields( const osg::Object* obj, const std::string& name )
{
// OSG_NOTICE<<"OutputStream::writeObjectFields("<<obj->className()<<", name="<<name<<")"<<std::endl;
ObjectWrapper* wrapper = Registry::instance()->getObjectWrapperManager()->findWrapper( name );
if ( !wrapper )