Added scene renderer

This commit is contained in:
HOEGLER Stefan
2020-03-05 11:43:38 +01:00
parent 4c2535931e
commit 328edf5196
23 changed files with 334 additions and 113 deletions
+16 -1
View File
@@ -1,14 +1,29 @@
#include "Window.h"
#include "Vulkan/VulkanGraphics.h"
#include "SceneView.h"
Seele::Window::Window(const WindowCreateInfo& createInfo)
: width(createInfo.width)
, height(createInfo.height)
, windowHandle(nullptr)
{
center = new Section();
center->resizeArea(Rect(1, 1, 0, 0));
center->addView(new SceneView());
graphics = new VulkanGraphics();
windowHandle = graphics->createWindow(createInfo);
}
Seele::Window::~Window()
{
}
void Seele::Window::beginFrame()
{
graphics->beginFrame(windowHandle);
center->beginFrame();
}
void Seele::Window::endFrame()
{
graphics->endFrame(windowHandle);
}