Add file structure to code

- Rename project to CopiumEngine
This commit is contained in:
Thraix
2023-02-07 21:43:47 +01:00
parent ef4eb7dd2f
commit 827572eada
494 changed files with 205 additions and 195 deletions
+29
View File
@@ -0,0 +1,29 @@
#include "copium/core/Application.h"
#include "copium/util/Common.h"
#include "copium/util/Timer.h"
#include <GLFW/glfw3.h>
int main()
{
CP_ASSERT(glfwInit() == GLFW_TRUE, "main : Failed to initialize the glfw context");
{
Copium::Application application;
Copium::Timer timer;
int frames = 0;
while (application.Update())
{
glfwPollEvents();
if (timer.Elapsed() >= 1.0)
{
CP_DEBUG("main : %d fps", frames);
frames = 0;
timer.Start();
}
frames++;
}
}
glfwTerminate();
return 0;
}