46 |
|
|
47 |
typedef boost::shared_ptr<Texture> Texture_sp; |
typedef boost::shared_ptr<Texture> Texture_sp; |
48 |
|
|
49 |
class ImageManager : public ResourceManager<Texture, TextureMeta, std::string> |
class TextureMapManager : public ResourceManager<Texture, TextureMeta, std::string> |
50 |
{ |
{ |
51 |
typedef resource Image_sp; |
typedef resource Image_sp; |
52 |
public: |
public: |
53 |
Image_sp get(const std::string& name); |
Image_sp get(const std::string& name); |
54 |
|
bool get(const std::string& name, Image_sp&); |
55 |
void meta_add(const TextureMeta*); |
void meta_add(const TextureMeta*); |
56 |
void load_path(const boost::filesystem::path&); |
void load_path(const boost::filesystem::path&); |
57 |
}; |
}; |
58 |
|
|
59 |
|
/* |
60 |
class TextureManager |
class TextureManager |
61 |
{ |
{ |
62 |
std::auto_ptr<TextureManagerImpl> impl; |
std::auto_ptr<TextureManagerImpl> impl; |
69 |
Texture_sp get(const std::string&texAlias); |
Texture_sp get(const std::string&texAlias); |
70 |
|
|
71 |
}; |
}; |
72 |
|
*/ |
73 |
} |
} |
74 |
#endif |
#endif |
75 |
|
|