Added FPS counter
Also removed multi window support
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -21,11 +21,8 @@ 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");
|
||||
/* Initializes GLFW and creates a window */
|
||||
GLFWwindow* window = GLFWManager::Init(800, 600, "Vulkan window");
|
||||
if (!window)
|
||||
return -1;
|
||||
|
||||
@@ -37,6 +34,7 @@ int main()
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
glfwPollEvents();
|
||||
GLFWManager::UpdateWindowTitleFPSInfo();
|
||||
|
||||
if (!VulkanManager::RenderPass())
|
||||
CleanupAllAndExit(EXIT_FAILURE);
|
||||
|
||||
Reference in New Issue
Block a user