aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/SDLApp.hpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 10:04:23 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 10:04:23 +0200
commit094ce1806156e191ffb554d4e88e636421cb0242 (patch)
tree675168131ac24bf29ffb161334be176e4d4022e0 /src/crepe/SDLApp.hpp
parentbd24f87e18bef29679023ee9a60028f2afdbb470 (diff)
particle direction is random
Diffstat (limited to 'src/crepe/SDLApp.hpp')
-rw-r--r--src/crepe/SDLApp.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/crepe/SDLApp.hpp b/src/crepe/SDLApp.hpp
new file mode 100644
index 0000000..92a4e27
--- /dev/null
+++ b/src/crepe/SDLApp.hpp
@@ -0,0 +1,25 @@
+#ifndef SDLAPP_HPP
+#define SDLAPP_HPP
+
+#include <SDL2/SDL.h>
+
+class SDLApp {
+public:
+ SDLApp(int windowWidth, int windowHeight);
+ ~SDLApp();
+
+ bool initialize();
+ void handleEvents(bool& running);
+ void clearScreen();
+ void presentScreen();
+ void drawSquare(int x, int y, int size);
+ void cleanUp();
+
+private:
+ int windowWidth;
+ int windowHeight;
+ SDL_Window* window;
+ SDL_Renderer* renderer;
+};
+
+#endif