diff options
| author | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 | 
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 | 
| commit | ffd335aca284c286030e2b26f1a02a0441748f46 (patch) | |
| tree | bcc1c241621fe159ae7ef178122fb41c5f23eb00 /util.h | |
| parent | d47da18958b5214def5127e201f60668c566d9bb (diff) | |
| download | mazeoflife-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.h | 14 | 
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 | |||
| 8 | void wrap(int* x, int* y); | ||
| 9 | TTF_Font* loadFont(int size); | ||
| 10 | const char* getDataFile(); | ||
| 11 | SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file); | ||
| 12 | void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y); | ||
| 13 | |||
| 14 | #endif \ No newline at end of file | ||
