X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgraphics%2Fdevil%2Fdevilloader.h;h=beab02fe7c95c8b7fec9a3ce18a224f58cfc62ff;hb=3c5bbaeadb33d288c0f9e487b52904b7ed7e4319;hp=3791bb2c0a519f4dd85ffe045eeb48f2f8e4e355;hpb=cfd3548464e6424fc9decf0539d6cd04b031ba10;p=libs%2Fgui.git diff --git a/source/graphics/devil/devilloader.h b/source/graphics/devil/devilloader.h index 3791bb2..beab02f 100644 --- a/source/graphics/devil/devilloader.h +++ b/source/graphics/devil/devilloader.h @@ -10,16 +10,17 @@ class DevilLoader: public ImageLoader { private: IO::Base &io; - std::string signature; - unsigned id; + unsigned id = 0; public: - DevilLoader(IO::Base &, const std::string &); - virtual ~DevilLoader(); + DevilLoader(IO::Seekable &); + ~DevilLoader(); + static unsigned get_signature_size() { return 128; } static bool detect(const std::string &); - virtual void load(Image::Data &); + void load_headers_(Image::Data &) override; + void load_pixels_(Image::Data &) override; }; } // namespace Graphics