From 66991ce9b81f4af3c095d38fa2187837d94e5469 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 5 Aug 2024 10:33:14 -0400 Subject: refactor and split into headers --- include/window.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/window.hpp (limited to 'include/window.hpp') diff --git a/include/window.hpp b/include/window.hpp new file mode 100644 index 0000000..d245b33 --- /dev/null +++ b/include/window.hpp @@ -0,0 +1,16 @@ +#ifndef WINDOW_HPP +#define WINDOW_HPP + +#include + +constexpr auto WINDOW_WIDTH = 640; +constexpr auto WINDOW_HEIGHT = 480; + +extern SDL_Window *window; +extern SDL_Renderer *renderer; + +int sdl2Initialize(); +SDL_Texture *sdl2LoadTexture(const char *path); + +#endif // WINDOW_HPP + -- cgit v1.2.3