blob: fe9a0be4e3588f65e024b04f12964e9c9e327bfa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef VIMAGELOADER_H
#define VIMAGELOADER_H
#include <memory>
#include "vector_vbitmap.h"
class VImageLoader
{
public:
static VImageLoader& instance()
{
static VImageLoader singleton;
return singleton;
}
VBitmap load(const char *fileName);
VBitmap load(const char *data, size_t len);
~VImageLoader();
private:
VImageLoader();
struct Impl;
std::unique_ptr<Impl> mImpl;
};
#endif // VIMAGELOADER_H
|