X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FTextureIndex.hpp;fp=src%2Fapp%2FTextureIndex.hpp;h=8c6e22f40f8ad87daba1bcad48784657d1953cc7;hb=65dbb0391afb6867bd9b388c6351b947a022abad;hp=0000000000000000000000000000000000000000;hpb=ede25c0a2f59e21521d1cd962e6ea9d78169ca12;p=blank.git diff --git a/src/app/TextureIndex.hpp b/src/app/TextureIndex.hpp new file mode 100644 index 0000000..8c6e22f --- /dev/null +++ b/src/app/TextureIndex.hpp @@ -0,0 +1,29 @@ +#ifndef BLANK_APP_TEXTUREINDEX_HPP_ +#define BLANK_APP_TEXTUREINDEX_HPP_ + +#include +#include + + +namespace blank { + +class TextureIndex { + + using MapType = std::map; + +public: + TextureIndex(); + + int GetID(const std::string &); + + std::size_t Size() const noexcept { return id_map.size(); } + const MapType &Entries() const noexcept { return id_map; } + +private: + MapType id_map; + +}; + +}; + +#endif