| 20 | virtual ~SpineTextureLoader() { } |
| 21 | |
| 22 | virtual void load(spine::AtlasPage& page, const spine::String& path) { |
| 23 | auto texture = SharedTextureCache.load({path.buffer(), path.length()}); |
| 24 | if (!texture) return; |
| 25 | texture->retain(); |
| 26 | page.texture = texture; |
| 27 | page.width = texture->getWidth(); |
| 28 | page.height = texture->getHeight(); |
| 29 | } |
| 30 | |
| 31 | virtual void unload(void* texture) { |
| 32 | if (texture) { |
no test coverage detected