From c73baf2e8637c8a0d10cff74d0ce1e818f540939 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 10 Dec 2015 15:53:43 +0000 Subject: Move text rendering into a util function --- src/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util.h') 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 -- cgit v1.2.3