From 44e66882f6e517b06522cb1e510ed9dea7574273 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 21 Nov 2020 18:20:00 +0100 Subject: Render emoji in text, do not show notification count for cache sync, lazy load 4chan board --- include/ResourceLoader.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/ResourceLoader.hpp (limited to 'include/ResourceLoader.hpp') 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 -- cgit v1.2.3