MCPcopy Create free account
hub / github.com/axmolengine/axmol / addImageTexture

Method addImageTexture

core/renderer/TextureCache.cpp:839–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839void 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
853void VolatileTextureMgr::addImage(Texture2D* tt, Image* image)
854{

Callers

nothing calls this directly

Calls 1

getPixelFormatMethod · 0.45

Tested by

no test coverage detected