aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/window.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 13:34:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-03 13:34:27 +0100
commit2585dc3cab48ccad0cfa0c63354662d656c86c46 (patch)
tree579851837f35842e5ed682c912c470d68df79183 /mwe/events/include/window.h
parent5deb950619dff9dde8b49520b23e3ce4001afbee (diff)
`make format`
Diffstat (limited to 'mwe/events/include/window.h')
-rw-r--r--mwe/events/include/window.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/mwe/events/include/window.h b/mwe/events/include/window.h
index 3c34d4c..bd75c4a 100644
--- a/mwe/events/include/window.h
+++ b/mwe/events/include/window.h
@@ -1,27 +1,27 @@
#pragma once
-#include <SDL2/SDL.h>
-#include <vector>
#include "uiObject.h"
#include "uiRenderer.h"
+#include <SDL2/SDL.h>
+#include <vector>
class WindowManager {
public:
- WindowManager();
- virtual ~WindowManager();
+ WindowManager();
+ virtual ~WindowManager();
- bool initWindow();
- void destroyWindow();
- SDL_Renderer* getRenderer();
+ bool initWindow();
+ void destroyWindow();
+ SDL_Renderer * getRenderer();
- void addUIObject(UIObject* uiObject);
- void renderUIObjects();
+ void addUIObject(UIObject * uiObject);
+ void renderUIObjects();
private:
- const int SCREEN_WIDTH = 800;
- const int SCREEN_HEIGHT = 600;
- SDL_Window* window = nullptr;
- SDL_Renderer* renderer = nullptr;
+ const int SCREEN_WIDTH = 800;
+ const int SCREEN_HEIGHT = 600;
+ SDL_Window * window = nullptr;
+ SDL_Renderer * renderer = nullptr;
- UIRenderer* uiRenderer;
- std::vector<UIObject*> uiObjects;
+ UIRenderer * uiRenderer;
+ std::vector<UIObject *> uiObjects;
};