mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Minor improvements in ImageSource code
This commit is contained in:
parent
f37f9a6f0b
commit
a4d2633ac6
3 changed files with 38 additions and 36 deletions
|
@ -5,7 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <IImage.h>
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
|
@ -28,7 +28,7 @@ public:
|
|||
// Primarily fetches from cache, secondarily tries to read from filesystem.
|
||||
video::IImage *getOrLoad(const std::string &name);
|
||||
private:
|
||||
std::map<std::string, video::IImage*> m_images;
|
||||
std::unordered_map<std::string, video::IImage*> m_images;
|
||||
};
|
||||
|
||||
// Generates images using texture modifiers, and caches source images.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue