summary refs log tree commit diff stats
path: root/util.h
blob: 062dfe64a3aea96621d1bfb6692e0fd9179d3d8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef UTIL_H
#define UTIL_H

#include <SDL.h>
#include <SDL_ttf.h>

#include <memory>
#include <string>

#include "sdl.h"

void wrap(int& x, int& y);
font_ptr loadFont(int size);
std::string getDataFile();
texture_ptr loadImage(SDL_Renderer* renderer, std::string file);
void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y);

#endif