| 223 | } |
| 224 | |
| 225 | bool TextureCache::unload(Texture2D* texture) { |
| 226 | for (auto it = _textures.begin(); it != _textures.end(); ++it) { |
| 227 | if (it->second == texture) { |
| 228 | _textures.erase(it); |
| 229 | return true; |
| 230 | } |
| 231 | } |
| 232 | return false; |
| 233 | } |
| 234 | |
| 235 | bool TextureCache::unload(String filename) { |
| 236 | std::string fullPath = SharedContent.getFullPath(filename); |