diff options
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 13 |
1 files changed, 8 insertions, 5 deletions
| diff --git a/util.h b/util.h index 836f065..062dfe6 100644 --- a/util.h +++ b/util.h | |||
| @@ -1,15 +1,18 @@ | |||
| 1 | #ifndef UTIL_H | ||
| 2 | #define UTIL_H | ||
| 3 | |||
| 1 | #include <SDL.h> | 4 | #include <SDL.h> |
| 2 | #include <SDL_ttf.h> | 5 | #include <SDL_ttf.h> |
| 3 | 6 | ||
| 7 | #include <memory> | ||
| 4 | #include <string> | 8 | #include <string> |
| 5 | 9 | ||
| 6 | #ifndef UTIL_H | 10 | #include "sdl.h" |
| 7 | #define UTIL_H | ||
| 8 | 11 | ||
| 9 | void wrap(int& x, int& y); | 12 | void wrap(int& x, int& y); |
| 10 | TTF_Font* loadFont(int size); | 13 | font_ptr loadFont(int size); |
| 11 | const char* getDataFile(); | 14 | std::string getDataFile(); |
| 12 | SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file); | 15 | texture_ptr loadImage(SDL_Renderer* renderer, std::string file); |
| 13 | void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y); | 16 | void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y); |
| 14 | 17 | ||
| 15 | #endif \ No newline at end of file | 18 | #endif \ No newline at end of file |
