aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/graphics/font_glyph.h
blob: 0d9cb2daf0db141050f4ae6e7c5664dad188596d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 */