Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
to help enable better querying of supported features
This commit is contained in:
@@ -94,15 +94,13 @@ static bool getFilenameAndParams(const std::string& input, std::string& filename
|
||||
class ReaderWriterTRANS : public osgDB::ReaderWriter
|
||||
{
|
||||
public:
|
||||
ReaderWriterTRANS() { }
|
||||
ReaderWriterTRANS()
|
||||
{
|
||||
supportsExtension(EXTENSION_NAME,"Translation Psuedo loader.");
|
||||
}
|
||||
|
||||
virtual const char* className() const { return "translation pseudo-loader"; }
|
||||
|
||||
virtual bool acceptsExtension(const std::string& extension) const
|
||||
{
|
||||
return osgDB::equalCaseInsensitive( extension, EXTENSION_NAME );
|
||||
}
|
||||
|
||||
virtual ReadResult readNode(const std::string& fileName, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
|
||||
|
||||
Reference in New Issue
Block a user