Files
Seele/src/Engine/Graphics/Vulkan/VulkanGraphics.cpp
T

36 lines
826 B
C++
Raw Normal View History

2020-03-02 19:07:49 +01:00
#include "VulkanGraphics.h"
2020-03-05 11:43:38 +01:00
#include <GLFW/glfw3.h>
2020-03-02 19:07:49 +01:00
void Seele::VulkanGraphics::init(GraphicsInitializer initializer)
{
}
2020-03-05 11:43:38 +01:00
void Seele::VulkanGraphics::beginFrame(void* windowHandle)
2020-03-02 19:07:49 +01:00
{
2020-03-05 11:43:38 +01:00
GLFWwindow* window = static_cast<GLFWwindow*>(windowHandle);
glfwPollEvents();
2020-03-02 19:07:49 +01:00
}
2020-03-05 11:43:38 +01:00
void Seele::VulkanGraphics::endFrame(void* windowHandle)
2020-03-02 19:07:49 +01:00
{
2020-03-05 11:43:38 +01:00
GLFWwindow* window = static_cast<GLFWwindow*>(windowHandle);
2020-03-02 19:07:49 +01:00
}
void* Seele::VulkanGraphics::createWindow(const WindowCreateInfo& createInfo)
{
2020-03-05 11:43:38 +01:00
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();
2020-03-02 19:07:49 +01:00
}