diff options
author | Aki <please@ignore.pl> | 2022-05-21 21:17:27 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-05-21 21:17:27 +0200 |
commit | 3e8ebf3133ece10efc8cf9219dafc02e780bc3ab (patch) | |
tree | e5427ceac77f2bf8939a56940e081fa07e4e6246 /Icons.h | |
parent | 5ea4d9d4c2f9c99fc5773a2ba91c470078368165 (diff) | |
download | derelict-3e8ebf3133ece10efc8cf9219dafc02e780bc3ab.zip derelict-3e8ebf3133ece10efc8cf9219dafc02e780bc3ab.tar.gz derelict-3e8ebf3133ece10efc8cf9219dafc02e780bc3ab.tar.bz2 |
Added naive icons loading
Diffstat (limited to 'Icons.h')
-rw-r--r-- | Icons.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#pragma once + +#include <unordered_map> + +#include <raylib.h> + + +class Icons +{ +public: + Icons(); + ~Icons(); + void reset(); + Texture2D find(long int type); +private: + std::unordered_map<long int, Texture2D> m_cache; +}; |