]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/devil/devilloader.h
beab02fe7c95c8b7fec9a3ce18a224f58cfc62ff
[libs/gui.git] / source / graphics / devil / devilloader.h
1 #ifndef MSP_GRAPHICS_DEVILLOADER_H_
2 #define MSP_GRAPHICS_DEVILLOADER_H_
3
4 #include <msp/graphics/imageloader.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class DevilLoader: public ImageLoader
10 {
11 private:
12         IO::Base &io;
13         unsigned id = 0;
14
15 public:
16         DevilLoader(IO::Seekable &);
17         ~DevilLoader();
18
19         static unsigned get_signature_size() { return 128; }
20         static bool detect(const std::string &);
21
22         void load_headers_(Image::Data &) override;
23         void load_pixels_(Image::Data &) override;
24 };
25
26 } // namespace Graphics
27 } // namespace Msp
28
29 #endif