Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods

to help enable better querying of supported features
This commit is contained in:
Robert Osfield
2008-07-13 22:18:59 +00:00
parent cb98cddc31
commit 02b456bcfa
54 changed files with 421 additions and 323 deletions

View File

@@ -72,15 +72,14 @@ static bool getFilenameAndParams(const std::string& input, std::string& filename
class ReaderWriterOsgShadow : public osgDB::ReaderWriter
{
public:
ReaderWriterOsgShadow() { }
ReaderWriterOsgShadow()
{
supportsExtension("osgShadow","OpenSceneGraph osgShadow extension to .osg ascii format");
supportsExtension("shadow","OpenSceneGraph osgShadow extension pseudo loader");
}
virtual const char* className() const { return "osgShadow pseudo-loader"; }
virtual bool acceptsExtension(const std::string& extension) const
{
return osgDB::equalCaseInsensitive( extension, "osgShadow" ) || osgDB::equalCaseInsensitive( extension, "shadow" ) ;
}
virtual ReadResult readNode(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
{
std::string ext = osgDB::getLowerCaseFileExtension(fileName);