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
+20 -3
View File
@@ -1,18 +1,35 @@
#include "VulkanGraphics.h"
#include <GLFW/glfw3.h>
void Seele::VulkanGraphics::init(GraphicsInitializer initializer)
{
}
void Seele::VulkanGraphics::beginFrame()
void Seele::VulkanGraphics::beginFrame(void* windowHandle)
{
GLFWwindow* window = static_cast<GLFWwindow*>(windowHandle);
glfwPollEvents();
}
void Seele::VulkanGraphics::endFrame()
void Seele::VulkanGraphics::endFrame(void* windowHandle)
{
GLFWwindow* window = static_cast<GLFWwindow*>(windowHandle);
}
void* Seele::VulkanGraphics::createWindow(const WindowCreateInfo& createInfo)
{
return nullptr;
GLFWwindow* window = glfwCreateWindow(createInfo.width, createInfo.height, createInfo.title, createInfo.bFullscreen ? glfwGetPrimaryMonitor() : nullptr, nullptr);
return window;
}
Seele::VulkanGraphics::VulkanGraphics()
{
glfwInit();
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
}
Seele::VulkanGraphics::~VulkanGraphics()
{
glfwTerminate();
}