]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/devil/devilloader.h
Implement automatic registration of image loaders
[libs/gui.git] / source / graphics / devil / devilloader.h
index 3b933ae2ff0cc9c0e52de2a7161a91b2c277f8e1..daab2a2bdc64b763575cc03886dfd11df9d52154 100644 (file)
@@ -12,10 +12,13 @@ private:
        IO::Base &io;
        unsigned id;
 
+       static Register<DevilLoader> reg;
+
 public:
        DevilLoader(IO::Seekable &);
        virtual ~DevilLoader();
 
+       static unsigned get_signature_size() { return 128; }
        static bool detect(const std::string &);
 
        virtual void load(Image::Data &);