From 14770f42df291753a240def91fb488a904a909c1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 2 Dec 2021 14:20:48 +0100 Subject: Initial commit, set up skeleton with list and button --- include/resource_loader.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/resource_loader.h (limited to 'include/resource_loader.h') 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 */ -- cgit v1.2.3