diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-04 08:31:05 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-04 08:31:05 +0100 |
commit | 63d50eea4e389e73e26f41452829dd48e6190c70 (patch) | |
tree | 82a8ef7a28fe7e069dbe9830adc28fd49dd85846 /mwe/events/include/window.h | |
parent | 06f65659fc6ffde7cabd2135040cbfbf089e5a24 (diff) | |
parent | 2585dc3cab48ccad0cfa0c63354662d656c86c46 (diff) |
Merge branch 'master' of github.com:lonkaars/crepe
Diffstat (limited to 'mwe/events/include/window.h')
-rw-r--r-- | mwe/events/include/window.h | 16 |
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; }; |