diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-12-10 15:53:43 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-12-10 15:53:43 +0000 |
commit | c73baf2e8637c8a0d10cff74d0ce1e818f540939 (patch) | |
tree | d42944564a47fbca24ee1d647c6625be1d558943 /src/util.h | |
parent | 3e1523d6a7c83d74673f5106ff87f7da465f467c (diff) | |
download | imv-c73baf2e8637c8a0d10cff74d0ce1e818f540939.tar.gz |
Move text rendering into a util function
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -31,4 +31,7 @@ int parse_hex_color(const char* str, /* Loads a font using SDL2_ttf given a spec in the format "name:size" */ TTF_Font *load_font(const char *font_spec); +void imv_printf(SDL_Renderer *renderer, TTF_Font *font, int x, int y, + SDL_Color *fg, SDL_Color *bg, const char *fmt, ...); + #endif |