summaryrefslogtreecommitdiff
path: root/ui/windowContent.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/windowContent.h')
-rw-r--r--ui/windowContent.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/windowContent.h b/ui/windowContent.h
index 474445a..34cbea3 100644
--- a/ui/windowContent.h
+++ b/ui/windowContent.h
@@ -2,25 +2,21 @@
#include "chronology.h"
#include "collection.h"
-#include "gfx/gl/uiShader.h"
#include "special_members.h"
#include "stdTypeDefs.h"
#include "uiComponent.h" // IWYU pragma: keep
-#include <functional>
class WindowContent : public StdTypeDefs<WindowContent> {
public:
- using Factory = std::function<Ptr(size_t width, size_t height)>;
- WindowContent(size_t width, size_t height);
+ WindowContent() = default;
virtual ~WindowContent() = default;
NO_MOVE(WindowContent);
NO_COPY(WindowContent);
virtual void tick(TickDuration);
- virtual void render() const = 0;
+ virtual void render() = 0;
virtual bool handleInput(const SDL_Event & e);
protected:
- ::Collection<UIComponent> uiComponents;
- UIShader uiShader;
+ UniqueCollection<UIComponent> uiComponents;
};