aboutsummaryrefslogtreecommitdiffstats
path: root/include/window.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-08-05 10:33:14 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-08-05 10:33:14 -0400
commit66991ce9b81f4af3c095d38fa2187837d94e5469 (patch)
treef889b93e33ad346e69f070da3fa9f8af9c943393 /include/window.hpp
parentb2eb646979b9cdcef4f9edfbcc2e2309b1f57a18 (diff)
refactor and split into headers
Diffstat (limited to 'include/window.hpp')
-rw-r--r--include/window.hpp16
1 files changed, 16 insertions, 0 deletions
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 <SDL2/SDL.h>
+
+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
+