#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/AnimatedTexture.hpp>
◆ clear()
| void Slic3r::GUI::AnimatedTextureCache::clear |
( |
| ) |
|
|
inline |
std::map< std::string, std::unique_ptr< AnimatedTexture > > m_items
Definition AnimatedTexture.hpp:70
References m_items.
◆ get()
| const AnimatedTexture * Slic3r::GUI::AnimatedTextureCache::get |
( |
const std::string & | path | ) |
|
226{
227 const auto it =
m_items.find(path);
229 return it->second.get();
230
231 auto texture = std::make_unique<AnimatedTexture>();
232 if (!texture->load_from_file(path))
233 texture.reset();
234
235 const AnimatedTexture *result = texture.get();
236 m_items.emplace(path, std::move(texture));
237 return result;
238}
References m_items.
◆ m_items
| std::map<std::string, std::unique_ptr<AnimatedTexture> > Slic3r::GUI::AnimatedTextureCache::m_items |
|
private |
The documentation for this class was generated from the following files: