gl_font.h
ATTR_FORMAT
a
b
c
__attribute__((format(a,b,c)))
GLF_FLG_LCD
(1 << 0)
glf_align
GLF_LEFT
GLF_RIGHT
GLF_TOP
GLF_BOTTOM
GLF_CENTER
struct gl_font * struct gl_font* glf_alloc (int height, int flags) glf_alloc int height int flags
void void glf_free (struct gl_font *glf) glf_free struct gl_font * glf
int int glf_load_face_file (struct gl_font *glf, const char *filename) glf_load_face_file struct gl_font * glf const char * filename
int int glf_load_face_mem (struct gl_font *glf, const void *data, size_t len) glf_load_face_mem struct gl_font * glf const void * data size_t len
float float glf_width_str (const struct gl_font *glf, const char *str) glf_width_str const struct gl_font * glf const char * str
void void glf_draw_str (const struct gl_font *glf, float x, enum glf_align x_align, float y, enum glf_align y_align, const char *str) glf_draw_str const struct gl_font * glf float x enum glf_align x_align float y enum glf_align y_align const char * str
void void glf_printf (const struct gl_font *glf, float x, enum glf_align x_align, float y, enum glf_align y_align, const char *fmt,...) ATTR_FORMAT(printf glf_printf const struct gl_font * glf float x enum glf_align x_align float y enum glf_align y_align const char * fmt ...
void void void void glf_begin (const struct gl_font *glf, float fg_color[3]) glf_begin const struct gl_font * glf float fg_color [3]
void void glf_end (void) glf_end void

Basic OpenGL font rendering.