]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/font.h
refactoring
[dragonblocks_alpha.git] / src / client / font.h
1 #ifndef _FONT_H_
2 #define _FONT_H_
3
4 #include <GL/glew.h>
5 #include <GL/gl.h>
6 #include <stdbool.h>
7 #include <stddef.h>
8 #include "client/mesh.h"
9 #include "types.h"
10
11 typedef struct {
12         v2f32 size;
13         size_t count;
14         Mesh *meshes;
15         GLuint *textures;
16 } Font;
17
18 bool font_init();
19 void font_deinit();
20 Font *font_create(const char *text);
21 void font_delete(Font *font);
22 void font_render(Font *font);
23
24 #endif // _FONT_H_