aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-30 22:38:55 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-30 22:38:55 +0000
commit4444e1f0a6117e42189d4d15105bd20b8497cd3a (patch)
tree6786f2f9e41a498efcc6d65e1c72f6bed464ded2 /src
parent50b94d3bb4cdc5d28e3469bc5d6b48b59e83eb04 (diff)
downloadimv-4444e1f0a6117e42189d4d15105bd20b8497cd3a.tar.gz
Document utils
Diffstat (limited to 'src')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
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 <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