Files
Seele/src/Engine/Graphics/Window.cpp
T

30 lines
581 B
C++
Raw Normal View History

#include "Window.h"
2020-03-02 19:07:49 +01:00
#include "Vulkan/VulkanGraphics.h"
2020-03-05 11:43:38 +01:00
#include "SceneView.h"
Seele::Window::Window(const WindowCreateInfo& createInfo)
2020-03-02 19:07:49 +01:00
: width(createInfo.width)
, height(createInfo.height)
{
2020-03-05 11:43:38 +01:00
center = new Section();
center->resizeArea(Rect(1, 1, 0, 0));
center->addView(new SceneView());
2020-03-02 19:07:49 +01:00
graphics = new VulkanGraphics();
2020-03-05 11:43:38 +01:00
windowHandle = graphics->createWindow(createInfo);
}
Seele::Window::~Window()
{
2020-03-02 19:07:49 +01:00
}
2020-03-05 11:43:38 +01:00
void Seele::Window::beginFrame()
{
graphics->beginFrame(windowHandle);
center->beginFrame();
}
void Seele::Window::endFrame()
{
graphics->endFrame(windowHandle);
}