aboutsummaryrefslogtreecommitdiff
path: root/include/ResourceLoader.hpp
blob: a332ba4dcd9161ece6d40f902903c47a4d926b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

namespace sf {
    class Font;
    class Texture;
}

namespace QuickMedia {
    void set_resource_loader_root_path(const char *resource_root);
}

namespace QuickMedia::FontLoader {
    enum class FontType {
        LATIN,
        LATIN_BOLD,
        CJK,
        EMOJI
    };

    // Note: not thread-safe
    sf::Font* get_font(FontType font_type);
}

namespace QuickMedia::TextureLoader {
    // Note: not thread-safe
    sf::Texture* get_texture(const char *filepath);
}