diff options
author | Aki <please@ignore.pl> | 2022-05-23 19:20:20 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-23 19:20:20 +0200 |
commit | 82737f92d16d35ba1d526b9118c32c47af5936aa (patch) | |
tree | df482fed761d7db0878887bc02d9eab22471f4d8 /Icons.h | |
parent | 3e8ebf3133ece10efc8cf9219dafc02e780bc3ab (diff) | |
download | derelict-82737f92d16d35ba1d526b9118c32c47af5936aa.zip derelict-82737f92d16d35ba1d526b9118c32c47af5936aa.tar.gz derelict-82737f92d16d35ba1d526b9118c32c47af5936aa.tar.bz2 |
Icons are now cached by filename
Diffstat (limited to 'Icons.h')
-rw-r--r-- | Icons.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ #pragma once +#include <string> #include <unordered_map> #include <raylib.h> @@ -13,5 +14,5 @@ public: void reset(); Texture2D find(long int type); private: - std::unordered_map<long int, Texture2D> m_cache; + std::unordered_map<std::string, Texture2D> m_cache; }; |