#include #include #include #include static bool checkImages( const osg::Texture2DArray& tex ) { return tex.getNumImages()>0; } static bool readImages( osgDB::InputStream& is, osg::Texture2DArray& tex ) { unsigned int size = 0; is >> size >> osgDB::BEGIN_BRACKET; tex.setTextureDepth(size); for ( unsigned int i=0; i> osgDB::END_BRACKET; return true; } static bool writeImages( osgDB::OutputStream& os, const osg::Texture2DArray& tex ) { unsigned int size = tex.getNumImages(); os << size << osgDB::BEGIN_BRACKET << std::endl; for ( unsigned int i=0; i