feat: move entrypoint to the engine

This commit is contained in:
2025-10-16 19:56:17 +02:00
parent bd7f52ae3d
commit 800d0eb8e4
3 changed files with 28 additions and 17 deletions

View File

@ -1,6 +1,8 @@
#ifndef APPLICATION_H_
#define APPLICATION_H_
#include "engine/window/events/window.h"
class IApplication {
public:
virtual ~IApplication() = default;

View File

@ -0,0 +1,19 @@
#ifndef WIN32
#define GLEW_STATIC
#endif
#include <memory>
#ifdef WIN32
#include <corecrt_math_defines.h>
#endif
#include "engine/app/app.h"
#include "engine/renderer/core.h"
extern IApplication* CreateApplication();
int main() {
Engine::Run(std::unique_ptr<IApplication>(CreateApplication()));
return 0;
}