Graphics is now a global object, instead of a per-window one

This commit is contained in:
HOEGLER Stefan
2020-03-15 15:58:01 +01:00
parent 30e256d0aa
commit 3b55755f0c
20 changed files with 121 additions and 59 deletions
+1 -3
View File
@@ -1,17 +1,15 @@
#include "Window.h"
#include "Vulkan/VulkanGraphics.h"
#include "SceneView.h"
Seele::Window::Window(const WindowCreateInfo& createInfo)
: width(createInfo.width)
, height(createInfo.height)
{
graphics = new VulkanGraphics();
graphics = createInfo.graphics;
center = new Section();
center->resizeArea(Rect(1, 1, 0, 0));
center->addView(new SceneView(graphics));
windowHandle = graphics->createWindow(createInfo);
graphics->init(GraphicsInitializer());
}
Seele::Window::~Window()