| 15 | static std::map<std::string,std::shared_ptr<Texture>> texture_cache; |
| 16 | |
| 17 | void Texture::clearTextureCache() { |
| 18 | texture_cache.clear(); |
| 19 | } |
| 20 | |
| 21 | Texture::Texture () |
| 22 | : width(-1), height(-1), format(INVALID), bytesPerTexel(0), width_mask(0), height_mask(0), data(nullptr) {} |