| 837 | } |
| 838 | |
| 839 | void VolatileTextureMgr::addImageTexture(Texture2D* tt, std::string_view imageFileName) |
| 840 | { |
| 841 | if (_isReloading) |
| 842 | { |
| 843 | return; |
| 844 | } |
| 845 | |
| 846 | VolatileTexture* vt = getOrAddVolatileTexture(tt); |
| 847 | |
| 848 | vt->_cashedImageType = VolatileTexture::kImageFile; |
| 849 | vt->_fileName = imageFileName; |
| 850 | vt->_pixelFormat = tt->getPixelFormat(); |
| 851 | } |
| 852 | |
| 853 | void VolatileTextureMgr::addImage(Texture2D* tt, Image* image) |
| 854 | { |
nothing calls this directly
no test coverage detected