]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/client/font.h
refactoring
[dragonblocks_alpha.git] / src / client / font.h
index def7410eb08de5e3b42c83b98ebf0e6c8f48acce..b7ba6bd9b5e38f462a68a1d09a8c28b8d56a7664 100644 (file)
@@ -1,22 +1,24 @@
 #ifndef _FONT_H_
 #define _FONT_H_
 
+#include <GL/glew.h>
+#include <GL/gl.h>
 #include <stdbool.h>
 #include <stddef.h>
 #include "client/mesh.h"
 #include "types.h"
 
-typedef struct
-{
+typedef struct {
        v2f32 size;
-       Mesh **meshes;
-       size_t meshes_count;
+       size_t count;
+       Mesh *meshes;
+       GLuint *textures;
 } Font;
 
 bool font_init();
 void font_deinit();
 Font *font_create(const char *text);
-void font_delete(Font *fnt);
-void font_render(Font *fnt);
+void font_delete(Font *font);
+void font_render(Font *font);
 
-#endif
+#endif // _FONT_H_