Files
Copium/CopiumEngine/src/copium/main.cpp
T
Thraix 3ec9bcd152 Add ecs ComponentListener
- Add ecs ComponentListener which listens to Component addition and
  removal
- Add RefCounter class used to keep track of moves and copies
2023-05-29 17:49:37 +02:00

28 lines
628 B
C++

#include "copium/core/Application.h"
#include "copium/core/Vulkan.h"
#include "copium/event/EventDispatcher.h"
#include "copium/event/Input.h"
#include "copium/util/Common.h"
#include "copium/util/Timer.h"
#include <GLFW/glfw3.h>
int main(int argc, char** argv)
{
CP_ASSERT(glfwInit() == GLFW_TRUE, "Failed to initialize the glfw context");
Copium::Vulkan::Initialize();
{
Copium::Application application;
while (application.Update())
{
Copium::Input::Update();
glfwPollEvents();
Copium::EventDispatcher::Dispatch();
}
}
Copium::Vulkan::Destroy();
glfwTerminate();
return 0;
}