diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-21 18:20:00 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-21 18:20:00 +0100 |
commit | 44e66882f6e517b06522cb1e510ed9dea7574273 (patch) | |
tree | c25095570a1a9438d267b724236fefd22e68aeed /include/ResourceLoader.hpp | |
parent | 9d36cfb599490888fa54110c796e14b542c402df (diff) |
Render emoji in text, do not show notification count for cache sync, lazy load 4chan board
Diffstat (limited to 'include/ResourceLoader.hpp')
-rw-r--r-- | include/ResourceLoader.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/ResourceLoader.hpp b/include/ResourceLoader.hpp new file mode 100644 index 0000000..a332ba4 --- /dev/null +++ b/include/ResourceLoader.hpp @@ -0,0 +1,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); +}
\ No newline at end of file |