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