2020-02-25 00:44:40 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "GraphicsResources.h"
|
|
|
|
|
#include "Window.h"
|
|
|
|
|
#include "Containers/Array.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
class WindowManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-03-05 11:43:38 +01:00
|
|
|
WindowManager();
|
2020-02-25 00:44:40 +01:00
|
|
|
~WindowManager();
|
2020-03-05 11:43:38 +01:00
|
|
|
void addWindow(const WindowCreateInfo& createInfo);
|
|
|
|
|
void beginFrame();
|
|
|
|
|
void endFrame();
|
2020-04-01 02:17:49 +02:00
|
|
|
inline bool isActive() const
|
|
|
|
|
{
|
|
|
|
|
return windows.size();
|
|
|
|
|
}
|
2020-02-25 00:44:40 +01:00
|
|
|
private:
|
2020-03-02 19:07:49 +01:00
|
|
|
Array<PWindow> windows;
|
2020-03-20 01:27:40 +01:00
|
|
|
Gfx::PGraphics graphics;
|
2020-02-25 00:44:40 +01:00
|
|
|
};
|
2020-03-08 13:38:40 +01:00
|
|
|
DEFINE_REF(WindowManager);
|
2020-02-25 00:44:40 +01:00
|
|
|
}
|