summary refs log tree commit diff stats
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h13
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
9void wrap(int& x, int& y); 12void wrap(int& x, int& y);
10TTF_Font* loadFont(int size); 13font_ptr loadFont(int size);
11const char* getDataFile(); 14std::string getDataFile();
12SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file); 15texture_ptr loadImage(SDL_Renderer* renderer, std::string file);
13void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y); 16void 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