From a59fcafb2e81f3cb40ff320b106030e8fed4bd66 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 2 Nov 2023 18:38:53 -0400 Subject: Modernized C++ a bit (and removed global highscores) --- util.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 836f065..062dfe6 100644 --- a/util.h +++ b/util.h @@ -1,15 +1,18 @@ +#ifndef UTIL_H +#define UTIL_H + #include #include +#include #include -#ifndef UTIL_H -#define UTIL_H +#include "sdl.h" void wrap(int& x, int& y); -TTF_Font* loadFont(int size); -const char* getDataFile(); -SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file); +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 \ No newline at end of file -- cgit 1.4.1