diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-06-15 14:28:29 +0100 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-07-03 20:50:19 +0100 |
commit | 7c7dc660e587eac1aa3c8b3405eba95ba558e682 (patch) | |
tree | 81d12d560b60d397be23c7d132e32a5de30e409a /src/util.h | |
parent | 20e9d23b82f55a751c3cf1166cb59ef26775ee00 (diff) | |
download | imv-7c7dc660e587eac1aa3c8b3405eba95ba558e682.tar.gz |
Big glfw refactor
I did a lot of this in a very ad-hoc fashion with no proper commit
history. As such, the kindest thing to do seemed to be to just squash it
into this one commit.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/util.h b/src/util.h deleted file mode 100644 index 23a6388..0000000 --- a/src/util.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef UTIL_H -#define UTIL_H - -#include <SDL2/SDL.h> -#include <SDL2/SDL_ttf.h> - -/* Read binary data from stdin into buffer */ -size_t read_from_stdin(void **buffer); - -/* Creates a new SDL_Texture* containing a chequeboard texture */ -SDL_Texture *create_chequered(SDL_Renderer *renderer); - -/* 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 - - -/* vim:set ts=2 sts=2 sw=2 et: */ |