Show
Ignore:
Timestamp:
07/14/08 00:18:59 (6 years ago)
Author:
robert
Message:

Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
to help enable better querying of supported features

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/png/ReaderWriterPNG.cpp

    r8378 r8578  
    8181{ 
    8282    public: 
     83        ReaderWriterPNG() 
     84        { 
     85            supportsExtension("png","PNG Image format"); 
     86        } 
     87         
    8388        virtual const char* className() const { return "PNG Image Reader/Writer"; } 
    84         virtual bool acceptsExtension(const std::string& extension) const { return osgDB::equalCaseInsensitive(extension,"png"); } 
    8589 
    8690        WriteResult::WriteStatus writePngStream(std::ostream& fout, const osg::Image& img, int compression_level) const