]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/devil/devilloader.h
daab2a2bdc64b763575cc03886dfd11df9d52154
[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;
14
15         static Register<DevilLoader> reg;
16
17 public:
18         DevilLoader(IO::Seekable &);
19         virtual ~DevilLoader();
20
21         static unsigned get_signature_size() { return 128; }
22         static bool detect(const std::string &);
23
24         virtual void load(Image::Data &);
25 };
26
27 } // namespace Graphics
28 } // namespace Msp
29
30 #endif