1 #ifndef __IMAGE_TEXTURE_MANAGER_HPP__
2 #define __IMAGE_TEXTURE_MANAGER_HPP__
19 ImageTexture* get(const std::string& filename);
21 void register_texture(Texture* texture);
22 void remove_texture(Texture* texture);
25 void reload_textures();
28 friend class ImageTexture;
29 void release(ImageTexture* texture);
31 typedef std::map<std::string, ImageTexture*> ImageTextures;
32 ImageTextures image_textures;
34 ImageTexture* create_image_texture(const std::string& filename);
36 typedef std::set<Texture*> Textures;
52 std::vector<SavedTexture> saved_textures;
54 void save_texture(Texture* texture);
57 extern TextureManager* texture_manager;