mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-14 03:50:26 +00:00
27 lines
457 B
C
27 lines
457 B
C
|
#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
|