summaryrefslogtreecommitdiffhomepage
path: root/Icons.h
blob: cc681728b67ce70940d08aa0db429ad11d79e038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <string>
#include <unordered_map>
#include <vector>

#include <raylib.h>


class Icons
{
public:
    Icons();
    ~Icons();
    void reset();
    void draw_team_icons();
    Texture2D find(long int group);
    Texture2D team_icon(int team);
private:
    std::unordered_map<std::string, Texture2D> m_cache;
    std::vector<RenderTexture2D> m_teams;
};