]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/devil/devilloader.h
Add a helper class for registering image loaders
[libs/gui.git] / source / graphics / devil / devilloader.h
index 3b933ae2ff0cc9c0e52de2a7161a91b2c277f8e1..e94a31b4e7dfd6fad0f3753439aa287a99313643 100644 (file)
@@ -6,7 +6,7 @@
 namespace Msp {
 namespace Graphics {
 
-class DevilLoader: public ImageLoader
+class DevilLoader: public RegisteredImageLoader<DevilLoader>
 {
 private:
        IO::Base &io;
@@ -16,6 +16,7 @@ public:
        DevilLoader(IO::Seekable &);
        virtual ~DevilLoader();
 
+       static unsigned get_signature_size() { return 128; }
        static bool detect(const std::string &);
 
        virtual void load(Image::Data &);