aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/window.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 16:12:47 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 16:12:47 +0100
commite36ea050972fcaaf3d85d672755bad4ebb2dcd80 (patch)
tree5145e0b66650eea1df301106b7d197a586be65f3 /mwe/events/include/window.h
parent333b07775be1ef20fdb5909672c1e4dcabec1b40 (diff)
parentb770475741b7c33d57331f3139c55a3f237ad274 (diff)
merge `master` into `loek/savemgr`
Diffstat (limited to 'mwe/events/include/window.h')
-rw-r--r--mwe/events/include/window.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/mwe/events/include/window.h b/mwe/events/include/window.h
index 9020b1a..bd75c4a 100644
--- a/mwe/events/include/window.h
+++ b/mwe/events/include/window.h
@@ -1,19 +1,27 @@
#pragma once
+#include "uiObject.h"
+#include "uiRenderer.h"
#include <SDL2/SDL.h>
-#include <iostream>
#include <vector>
+
class WindowManager {
public:
WindowManager();
virtual ~WindowManager();
+
bool initWindow();
void destroyWindow();
-
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;
+ SDL_Window * window = nullptr;
+ SDL_Renderer * renderer = nullptr;
+
+ UIRenderer * uiRenderer;
+ std::vector<UIObject *> uiObjects;
};