aboutsummaryrefslogtreecommitdiff
path: root/include/resource_loader.h
blob: 6120faae664229ed5b2999b244ce21535d62f7ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 */