summaryrefslogtreecommitdiff
path: root/lib/assetManager.hpp
blob: 7b15f5afaa725d7c3d2cd9e21a394ddb82c00c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <string>
#include <unordered_map>
#include <raylib.h>

class assetManager
{
private:
    std::unordered_map<std::string, Texture2D> textures;
public:
    assetManager();
    ~assetManager();

    void init(const std::string& dirPath = "../assets");
    Texture2D load(const std::string& texName);
    void cleanup();
};