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

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

unsigned long  utf8_strlen(void *string);
void           utf8to32_strcpy(wchar_t *dest, char *src);
struct idlist *load_texts(char *filename);
void           text_destroy(void *text);