]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/png/pngloader.h
Implement automatic registration of image loaders
[libs/gui.git] / source / graphics / png / pngloader.h
index 0bb5fd7a575c2d559939fcbab0a1cf7b71d58b11..683f4d37389d3e98189b7edeaf41876c716a6f94 100644 (file)
@@ -13,10 +13,13 @@ private:
 
        Private *priv;
 
+       static Register<PngLoader> reg;
+
 public:
-       PngLoader(IO::Base &, const std::string &);
+       PngLoader(IO::Base &, unsigned = 0);
        virtual ~PngLoader();
 
+       static unsigned get_signature_size() { return 8; }
        static bool detect(const std::string &);
 
        virtual void load(Image::Data &);