diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-20 16:58:59 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-11-20 16:58:59 -0500 |
commit | c3fd9dfa23969c842991da4cd852330288889463 (patch) | |
tree | 1a2e390ae57109febea9a5853ef9f04559d1f820 /text.h | |
parent | c376f6f53f737d6220206baa323c0bc62d48a9f0 (diff) |
started text rendering
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#ifndef TEXT_H_ +#define TEXT_H_ + +typedef struct Font Font; + +char const *text_get_err(void); +extern Font *text_font_load(char const *ttf_filename, float font_size); +extern void text_render(Font *font, char const *text, float x, float y); +extern void text_get_size(Font *font, char const *text, float *width, float *height); + +#endif |