aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/font_glyph.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/graphics/font_glyph.h')
-rw-r--r--include/mgl/graphics/font_glyph.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mgl/graphics/font_glyph.h b/include/mgl/graphics/font_glyph.h
new file mode 100644
index 0000000..0d9cb2d
--- /dev/null
+++ b/include/mgl/graphics/font_glyph.h
@@ -0,0 +1,14 @@
+#ifndef MGL_FONT_GLYPH_H
+#define MGL_FONT_GLYPH_H
+
+#include "../system/vec.h"
+
+typedef struct {
+ mgl_vec2i position;
+ mgl_vec2i size;
+ mgl_vec2i texture_position; /* In pixel space */
+ mgl_vec2i texture_size; /* In pixel space */
+ int advance;
+} mgl_font_glyph;
+
+#endif /* MGL_FONT_GLYPH_H */