Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
loader.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <unordered_map>
6
7namespace gui::img {
8
12class Loader {
13public:
14 Loader() = default;
15
16 bool init();
17
18 const Img& getImg(ImgID img_id) const;
19
20private:
21 std::unordered_map<ImgID, Img> img_map;
22
23 bool _loadImg(ImgID img_id);
24};
25
26}
Definition: loader.hpp:12
Loader()=default
const Img & getImg(ImgID img_id) const
Definition: loader.cpp:74
bool init()
Definition: loader.cpp:11
Definition: img.hpp:9
ImgID
Definition: img.hpp:17
Definition: img.hpp:124