#define MSP_GRAPHICS_DEVILLOADER_H_
#include <msp/graphics/imageloader.h>
+#include <msp/graphics/mspgui_api.h>
namespace Msp {
namespace Graphics {
-class DevilLoader: public ImageLoader
+class MSPGUI_API 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