Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
SourceImageCache Class Reference

#include <imagesource.h>

+ 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 ( )

References m_images.

Member Function Documentation

◆ get()

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

References m_images.

◆ getOrLoad()

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

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

Referenced by ImageSource::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 )

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

Referenced by ImageSource::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 files: