aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-10 15:53:43 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-10 15:53:43 +0000
commitc73baf2e8637c8a0d10cff74d0ce1e818f540939 (patch)
treed42944564a47fbca24ee1d647c6625be1d558943 /src/util.h
parent3e1523d6a7c83d74673f5106ff87f7da465f467c (diff)
downloadimv-c73baf2e8637c8a0d10cff74d0ce1e818f540939.tar.gz
Move text rendering into a util function
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index fbbd686..760b375 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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