25 lines
526 B
C++
25 lines
526 B
C++
#include "src/GLFWManager.h"
|
|
|
|
int main()
|
|
{
|
|
using namespace PB::Renderer; // Project namespace
|
|
|
|
/* Initializes GLFW and creates window */
|
|
if (!GLFWManager::Init())
|
|
return -1;
|
|
|
|
GLFWwindow* window = GLFWManager::CreateWindow(800, 600, "Vulkan window");
|
|
if (!window)
|
|
return -1;
|
|
|
|
/* Polls window events whilst it is still open */
|
|
while (!glfwWindowShouldClose(window))
|
|
{
|
|
glfwPollEvents();
|
|
}
|
|
|
|
/* Cleans up GLFW */
|
|
if (!GLFWManager::Cleanup())
|
|
return -1;
|
|
}
|