2020-02-25 00:44:40 +01:00
|
|
|
#include "WindowManager.h"
|
|
|
|
|
|
2020-03-05 11:43:38 +01:00
|
|
|
Seele::WindowManager::WindowManager()
|
2020-02-25 00:44:40 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Seele::WindowManager::~WindowManager()
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-03-05 11:43:38 +01:00
|
|
|
|
|
|
|
|
void Seele::WindowManager::addWindow(const WindowCreateInfo& createInfo)
|
|
|
|
|
{
|
|
|
|
|
PWindow window = new Window(createInfo);
|
|
|
|
|
windows.add(window);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Seele::WindowManager::beginFrame()
|
|
|
|
|
{
|
|
|
|
|
for (auto window : windows)
|
|
|
|
|
{
|
|
|
|
|
window->beginFrame();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Seele::WindowManager::endFrame()
|
|
|
|
|
{
|
|
|
|
|
for (auto window : windows)
|
|
|
|
|
{
|
|
|
|
|
window->endFrame();
|
|
|
|
|
}
|
|
|
|
|
}
|