]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/devil/devilloader.h
Add decorations for things which should be exported from the library
[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 #include <msp/graphics/mspgui_api.h>
6
7 namespace Msp {
8 namespace Graphics {
9
10 class MSPGUI_API DevilLoader: public ImageLoader
11 {
12 private:
13         IO::Base &io;
14         unsigned id = 0;
15
16 public:
17         DevilLoader(IO::Seekable &);
18         ~DevilLoader();
19
20         static unsigned get_signature_size() { return 128; }
21         static bool detect(const std::string &);
22
23         void load_headers_(Image::Data &) override;
24         void load_pixels_(Image::Data &) override;
25 };
26
27 } // namespace Graphics
28 } // namespace Msp
29
30 #endif