summary refs log tree commit diff stats
path: root/util.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
committerStarla Insigna <starla4444@gmail.com>2013-08-27 11:39:37 -0400
commitffd335aca284c286030e2b26f1a02a0441748f46 (patch)
treebcc1c241621fe159ae7ef178122fb41c5f23eb00 /util.h
parentd47da18958b5214def5127e201f60668c566d9bb (diff)
downloadmazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.gz
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.bz2
mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.zip
Started rewriting game from scratch with SDL2
Only the title screen is currently implemented
Diffstat (limited to 'util.h')
-rw-r--r--util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/util.h b/util.h new file mode 100644 index 0000000..365a759 --- /dev/null +++ b/util.h
@@ -0,0 +1,14 @@
1#include <SDL.h>
2#include <SDL_ttf.h>
3#include <string>
4
5#ifndef UTIL_H
6#define UTIL_H
7
8void wrap(int* x, int* y);
9TTF_Font* loadFont(int size);
10const char* getDataFile();
11SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file);
12void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y);
13
14#endif \ No newline at end of file