diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-30 22:38:55 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-30 22:38:55 +0000 |
commit | 4444e1f0a6117e42189d4d15105bd20b8497cd3a (patch) | |
tree | 6786f2f9e41a498efcc6d65e1c72f6bed464ded2 /src | |
parent | 50b94d3bb4cdc5d28e3469bc5d6b48b59e83eb04 (diff) | |
download | imv-4444e1f0a6117e42189d4d15105bd20b8497cd3a.tar.gz |
Document utils
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -21,9 +21,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> +/* 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 |