summaryrefslogtreecommitdiff
path: root/include/text.h
blob: 53e3f7774e4412a56e3741a2420e51c08e6a0688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define TXT_ATTR_INVISIBLE (1 << 0)

typedef struct text {
    char               *type;
    char               *scene;
    char               *font;
    wchar_t            *text;
    size_t              size;
    struct vector2ui    pos;
    size_t              attr;
    size_t              id;
} Text;

struct idlist  *load_texts(char *filename);
struct idlist  *load_texts_from_json(const char *filename);
void            text_destroy(void *text);