aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/window.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-28 17:58:53 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-28 17:58:53 +0100
commit5e833bba513d97c39f4e0d26b45a9095c32812a6 (patch)
tree57c2c6dfdb977a60425c4ca25d21e79fd5f02cf2 /mwe/events/include/window.h
parentf2136f836f9b9e9a6a6698f7bc6fba85a27ebebf (diff)
button working
Diffstat (limited to 'mwe/events/include/window.h')
-rw-r--r--mwe/events/include/window.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/mwe/events/include/window.h b/mwe/events/include/window.h
index 9020b1a..3c34d4c 100644
--- a/mwe/events/include/window.h
+++ b/mwe/events/include/window.h
@@ -1,19 +1,27 @@
#pragma once
#include <SDL2/SDL.h>
-#include <iostream>
#include <vector>
+#include "uiObject.h"
+#include "uiRenderer.h"
+
class WindowManager {
public:
- WindowManager();
- virtual ~WindowManager();
- bool initWindow();
- void destroyWindow();
+ WindowManager();
+ virtual ~WindowManager();
+
+ bool initWindow();
+ void destroyWindow();
+ SDL_Renderer* getRenderer();
- SDL_Renderer * getRenderer();
+ void addUIObject(UIObject* uiObject);
+ void renderUIObjects();
private:
- const int SCREEN_WIDTH = 800;
- const int SCREEN_HEIGHT = 600;
- SDL_Window * window = NULL;
- SDL_Renderer * renderer = NULL;
+ const int SCREEN_WIDTH = 800;
+ const int SCREEN_HEIGHT = 600;
+ SDL_Window* window = nullptr;
+ SDL_Renderer* renderer = nullptr;
+
+ UIRenderer* uiRenderer;
+ std::vector<UIObject*> uiObjects;
};