summaryrefslogtreecommitdiff
path: root/include/text.h
blob: a862071c75ac5dcface90f7397ed248cef2dc8c3 (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;
    char               *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);