From 4444e1f0a6117e42189d4d15105bd20b8497cd3a Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Mon, 30 Nov 2015 22:38:55 +0000 Subject: Document utils --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/util.h b/src/util.h index e7f53d7..fbbd686 100644 --- a/src/util.h +++ b/src/util.h @@ -21,9 +21,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include #include +/* Creates a new SDL_Texture* containing a chequeboard texture */ SDL_Texture *create_chequered(SDL_Renderer *renderer); + +/* Parses a triplet of hexadecimal bytes. Writes values to r, g, and b. */ int parse_hex_color(const char* str, unsigned char *r, unsigned char *g, unsigned char *b); + +/* Loads a font using SDL2_ttf given a spec in the format "name:size" */ TTF_Font *load_font(const char *font_spec); #endif -- cgit v1.2.3