Added scene renderer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user