static bool readImages( osgDB::InputStream& is, osg::ImageSequence& image ) { unsigned int images = is.readSize(); is >> is.BEGIN_BRACKET; for ( unsigned int i=0; i<images; ++i ) { osg::ref_ptr<osg::Image> img = is.readImage(); if ( img ) image.addImage( img ); } is >> is.END_BRACKET; return true; }
static bool readImages(osgDB::InputStream &is, osg::Texture2DArray &tex) { unsigned int size = 0; is >> size >> is.BEGIN_BRACKET; for (unsigned int i = 0; i < size; ++i) { osg::Image *image = is.readImage(); if (image) tex.setImage(i, image); } is >> is.END_BRACKET; return true; }