Minetest  5.4.0
SourceImageCache Class Reference
+ Collaboration diagram for SourceImageCache:

Public Member Functions

 ~SourceImageCache ()
 
void insert (const std::string &name, video::IImage *img, bool prefer_local)
 
video::IImage * get (const std::string &name)
 
video::IImage * getOrLoad (const std::string &name)
 

Private Attributes

std::map< std::string, video::IImage * > m_images
 

Constructor & Destructor Documentation

◆ ~SourceImageCache()

SourceImageCache::~SourceImageCache ( )
inline

References m_images.

Member Function Documentation

◆ get()

video::IImage* SourceImageCache::get ( const std::string &  name)
inline

References m_images.

◆ getOrLoad()

video::IImage* SourceImageCache::getOrLoad ( const std::string &  name)
inline

References RenderingEngine::get_video_driver(), getTexturePath(), infostream, and m_images.

Referenced by TextureSource::generateImagePart().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

void SourceImageCache::insert ( const std::string &  name,
video::IImage *  img,
bool  prefer_local 
)
inline

References RenderingEngine::get_video_driver(), getTexturePath(), and m_images.

Referenced by TextureSource::insertSourceImage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_images

std::map<std::string, video::IImage*> SourceImageCache::m_images
private

The documentation for this class was generated from the following file: