Line | |
---|
1 | #ifndef __IMAGE_LOADER_H__ |
---|
2 | #define __IMAGE_LOADER_H__ |
---|
3 | |
---|
4 | #include <map> |
---|
5 | #include <Image.h> |
---|
6 | |
---|
7 | class ImageLoaderImpl; |
---|
8 | class Image; |
---|
9 | |
---|
10 | class ImageLoader { |
---|
11 | friend class ImageLoaderFactory; |
---|
12 | |
---|
13 | ImageLoaderImpl* _loaderImpl; |
---|
14 | public : |
---|
15 | ImageLoader(); |
---|
16 | |
---|
17 | public : |
---|
18 | Image* load(const char* fileName); |
---|
19 | Image* load(const char* fileName, const Image::ImageFormat targetFormat); |
---|
20 | |
---|
21 | private : |
---|
22 | void setLoaderImpl(ImageLoaderImpl* loaderImpl); |
---|
23 | }; |
---|
24 | |
---|
25 | inline void ImageLoader::setLoaderImpl(ImageLoaderImpl* loaderImpl) |
---|
26 | { |
---|
27 | _loaderImpl= loaderImpl; |
---|
28 | } |
---|
29 | |
---|
30 | #endif // |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.