]> git.localhorst.tv Git - blank.git/blob - src/app/TextureIndex.hpp
group entity updates in as few packets as possible
[blank.git] / src / app / TextureIndex.hpp
1 #ifndef BLANK_APP_TEXTUREINDEX_HPP_
2 #define BLANK_APP_TEXTUREINDEX_HPP_
3
4 #include <map>
5 #include <string>
6
7
8 namespace blank {
9
10 class TextureIndex {
11
12         using MapType = std::map<std::string, int>;
13
14 public:
15         TextureIndex();
16
17         int GetID(const std::string &);
18
19         std::size_t Size() const noexcept { return id_map.size(); }
20         const MapType &Entries() const noexcept { return id_map; }
21
22 private:
23         MapType id_map;
24
25 };
26
27 };
28
29 #endif