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