diff options
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 |