◆ TextureSource()
TextureSource::TextureSource |
( |
| ) |
|
◆ ~TextureSource()
TextureSource::~TextureSource |
( |
| ) |
|
|
virtual |
◆ generateTexture()
u32 TextureSource::generateTexture |
( |
const std::string & | name | ) |
|
|
private |
References Align2Npot2(), errorstream, ImageSource::generateImage(), RenderingEngine::get_video_driver(), guiScalingCache(), infostream, m_imagesource, m_main_thread, m_name_to_id, m_textureinfo_cache, m_textureinfo_cache_mutex, and sanity_check.
Referenced by getTextureId(), and processQueue().
◆ getNormalTexture()
video::ITexture * TextureSource::getNormalTexture |
( |
const std::string & | name | ) |
|
|
virtual |
◆ getPalette()
Palette * TextureSource::getPalette |
( |
const std::string & | name | ) |
|
|
virtual |
◆ getTexture() [1/2]
video::ITexture * TextureSource::getTexture |
( |
const std::string & | name, |
|
|
u32 * | id = NULL ) |
|
virtual |
◆ getTexture() [2/2]
video::ITexture * TextureSource::getTexture |
( |
u32 | id | ) |
|
|
virtual |
◆ getTextureAverageColor()
video::SColor TextureSource::getTextureAverageColor |
( |
const std::string & | name | ) |
|
|
virtual |
◆ getTextureForMesh()
video::ITexture * TextureSource::getTextureForMesh |
( |
const std::string & | name, |
|
|
u32 * | id ) |
|
virtual |
◆ getTextureId()
u32 TextureSource::getTextureId |
( |
const std::string & | name | ) |
|
|
virtual |
Implements IWritableTextureSource.
References RequestQueue< Key, T, Caller, CallerData >::add(), errorstream, generateTexture(), infostream, GetResult< Key, T, Caller, CallerData >::item, GetResult< Key, T, Caller, CallerData >::key, m_get_texture_queue, m_main_thread, m_name_to_id, m_textureinfo_cache_mutex, and MutexedQueue< T >::pop_front().
Referenced by getTexture().
◆ getTextureName()
std::string TextureSource::getTextureName |
( |
u32 | id | ) |
|
|
virtual |
◆ insertSourceImage()
void TextureSource::insertSourceImage |
( |
const std::string & | name, |
|
|
video::IImage * | img ) |
|
virtual |
Implements IWritableTextureSource.
References RenderingEngine::get_video_driver(), ImageSource::insertSourceImage(), m_imagesource, m_main_thread, m_source_image_existence, m_textureinfo_cache, m_textureinfo_cache_mutex, rebuildTexture(), sanity_check, MutexedMap< Key, Value >::set(), and verbosestream.
◆ isKnownSourceImage()
bool TextureSource::isKnownSourceImage |
( |
const std::string & | name | ) |
|
|
inlinevirtual |
◆ processQueue()
void TextureSource::processQueue |
( |
| ) |
|
|
virtual |
Implements IWritableTextureSource.
References RequestQueue< Key, T, Caller, CallerData >::empty(), generateTexture(), GetRequest< Key, T, Caller, CallerData >::key, m_get_texture_queue, RequestQueue< Key, T, Caller, CallerData >::pop(), and RequestQueue< Key, T, Caller, CallerData >::pushResult().
◆ rebuildImagesAndTextures()
void TextureSource::rebuildImagesAndTextures |
( |
| ) |
|
|
virtual |
◆ rebuildTexture()
void TextureSource::rebuildTexture |
( |
video::IVideoDriver * | driver, |
|
|
TextureInfo & | ti ) |
|
private |
References Align2Npot2(), ImageSource::generateImage(), guiScalingCache(), m_imagesource, m_main_thread, m_texture_trash, TextureInfo::name, sanity_check, TextureInfo::sourceImages, and TextureInfo::texture.
Referenced by insertSourceImage(), and rebuildImagesAndTextures().
◆ m_get_texture_queue
RequestQueue<std::string, u32, std::thread::id, u8> TextureSource::m_get_texture_queue |
|
private |
◆ m_imagesource
◆ m_main_thread
std::thread::id TextureSource::m_main_thread |
|
private |
◆ m_name_to_id
std::map<std::string, u32> TextureSource::m_name_to_id |
|
private |
◆ m_palettes
std::unordered_map<std::string, Palette> TextureSource::m_palettes |
|
private |
◆ m_source_image_existence
MutexedMap<std::string, bool> TextureSource::m_source_image_existence |
|
private |
◆ m_texture_trash
std::vector<video::ITexture*> TextureSource::m_texture_trash |
|
private |
◆ m_textureinfo_cache
std::vector<TextureInfo> TextureSource::m_textureinfo_cache |
|
private |
◆ m_textureinfo_cache_mutex
std::mutex TextureSource::m_textureinfo_cache_mutex |
|
private |
◆ mesh_filter_needed
bool TextureSource::mesh_filter_needed |
|
private |
The documentation for this class was generated from the following file: