Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
to help enable better querying of supported features
This commit is contained in:
@@ -918,16 +918,17 @@ bool WriteDDSFile(const osg::Image *img, std::ostream& fout)
|
||||
class ReaderWriterDDS : public osgDB::ReaderWriter
|
||||
{
|
||||
public:
|
||||
|
||||
ReaderWriterDDS()
|
||||
{
|
||||
supportsExtension("dds","DDS image format");
|
||||
}
|
||||
|
||||
virtual const char* className() const
|
||||
{
|
||||
return "DDS Image Reader/Writer";
|
||||
}
|
||||
|
||||
virtual bool acceptsExtension(const std::string& extension) const
|
||||
{
|
||||
return osgDB::equalCaseInsensitive(extension,"dds");
|
||||
}
|
||||
|
||||
virtual ReadResult readObject(const std::string& file, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
return readImage(file,options);
|
||||
|
||||
Reference in New Issue
Block a user