aboutsummaryrefslogtreecommitdiff
path: root/include/resource_loader.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-12-02 14:20:48 +0100
committerdec05eba <dec05eba@protonmail.com>2021-12-02 14:29:13 +0100
commit14770f42df291753a240def91fb488a904a909c1 (patch)
treec1ef52c408cb365890da4aeb5536256040bb96fd /include/resource_loader.h
Initial commit, set up skeleton with list and button
Diffstat (limited to 'include/resource_loader.h')
-rw-r--r--include/resource_loader.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/resource_loader.h b/include/resource_loader.h
new file mode 100644
index 0000000..6120faa
--- /dev/null
+++ b/include/resource_loader.h
@@ -0,0 +1,15 @@
+#ifndef MGUI_RESOURCE_LOADER_H
+#define MGUI_RESOURCE_LOADER_H
+
+typedef struct mgl_font mgl_font;
+
+typedef enum {
+ MGUI_FONT_LATIN,
+ MGUI_FONT_LATIN_BOLD,
+ MGUI_FONT_CJK
+} mgui_font_type;
+
+/* Note: can return NULL if the font fails to load */
+mgl_font* mgui_get_font(mgui_font_type type, unsigned int character_size);
+
+#endif /* MGUI_RESOURCE_LOADER_H */