Files
Seele/src/Engine/UI/System.h
T

27 lines
547 B
C++
Raw Normal View History

2021-10-05 12:24:41 +02:00
#pragma once
2024-06-09 12:20:04 +02:00
#include "Graphics/RenderPass/TextPass.h"
#include "Graphics/RenderPass/UIPass.h"
2021-10-05 12:24:41 +02:00
#include "MinimalEngine.h"
#include "RenderHierarchy.h"
2024-06-09 12:20:04 +02:00
namespace Seele {
namespace UI {
2021-10-05 12:24:41 +02:00
DECLARE_REF(Panel)
2024-06-09 12:20:04 +02:00
class System {
public:
2021-10-05 12:24:41 +02:00
System();
virtual ~System();
2022-04-18 18:08:38 +02:00
void update();
2022-11-17 16:47:42 +01:00
void updateViewport(Gfx::PViewport viewport);
Component::Camera getVirtualCamera() const;
2024-06-09 12:20:04 +02:00
private:
2022-11-17 16:47:42 +01:00
Component::Camera virtualCamera;
2021-10-05 12:24:41 +02:00
PPanel rootPanel;
2022-04-18 18:08:38 +02:00
RenderHierarchy hierarchy;
2021-10-05 12:24:41 +02:00
};
DEFINE_REF(System)
} // namespace UI
} // namespace Seele