Make Vulkan class a global instance

This commit is contained in:
Thraix
2023-04-04 21:14:01 +02:00
parent 9faec15fd6
commit 431ad9c573
56 changed files with 333 additions and 424 deletions
+4
View File
@@ -1,4 +1,5 @@
#include "copium/core/Application.h"
#include "copium/core/Vulkan.h"
#include "copium/util/Common.h"
#include "copium/util/Timer.h"
@@ -7,6 +8,8 @@
int main()
{
CP_ASSERT(glfwInit() == GLFW_TRUE, "main : Failed to initialize the glfw context");
Copium::Vulkan::Initialize();
{
Copium::Application application;
Copium::Timer timer;
@@ -23,6 +26,7 @@ int main()
frames++;
}
}
Copium::Vulkan::Destroy();
glfwTerminate();
return 0;