static bool writeShaders( osgDB::OutputStream& os, const osg::Program& attr ) { unsigned int size = attr.getNumShaders(); os.writeSize(size); os << os.BEGIN_BRACKET << std::endl; for ( unsigned int i=0; i<size; ++i ) { os << attr.getShader(i); } os << os.END_BRACKET << std::endl; return true; }
// _shaderList static bool checkShaders( const osg::Program& attr ) { return attr.getNumShaders()>0; }