You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
450 B
26 lines
450 B
#ifndef VIMAGELOADER_H |
|
#define VIMAGELOADER_H |
|
|
|
#include <memory> |
|
|
|
#include "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
|
|
|