Last change
on this file since 3596 was
2831,
checked in by ldelgass, 13 years ago
|
Refactor texture classes, misc. cleanups, cut down on header pollution -- still
need to fix header deps in Makefile.in
|
-
Property svn:eol-style set to
native
|
File size:
621 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef IMAGE_LOADER_FACTORY_H |
---|
3 | #define IMAGE_LOADER_FACTORY_H |
---|
4 | |
---|
5 | #include <map> |
---|
6 | #include <string> |
---|
7 | |
---|
8 | class ImageLoaderImpl; |
---|
9 | class Image; |
---|
10 | class ImageLoader; |
---|
11 | |
---|
12 | class ImageLoaderFactory |
---|
13 | { |
---|
14 | public: |
---|
15 | void addLoaderImpl(const std::string& ext, ImageLoaderImpl *loaderImpl); |
---|
16 | ImageLoader *createLoader(const std::string& ext); |
---|
17 | |
---|
18 | static ImageLoaderFactory *getInstance(); |
---|
19 | |
---|
20 | protected : |
---|
21 | ImageLoaderFactory(); |
---|
22 | ~ImageLoaderFactory(); |
---|
23 | |
---|
24 | private: |
---|
25 | std::map<std::string, ImageLoaderImpl *> _loaderImpls; |
---|
26 | static ImageLoaderFactory *_instance; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.