| 6 | #include "vbitmap.h" |
| 7 |
| 8 | class VImageLoader |
| 9 | { |
| 10 | public: |
| 11 | static VImageLoader& instance() |
| 12 | { |
| 13 | static VImageLoader singleton; |
| 14 | return singleton; |
| 15 | } |
| 16 |
| 17 | VBitmap load(const char *fileName); |
| 18 | VBitmap load(const char *data, int len); |
| 19 | ~VImageLoader(); |
| 20 | private: |
| 21 | VImageLoader(); |
| 22 | struct Impl; |
| 23 | std::unique_ptr<Impl> mImpl; |
| 24 | }; |
| 25 |
| 26 | #endif // VIMAGELOADER_H |
| 27 |