Onyx-Engine/main.cpp

24 lines
393 B
C++
Raw Permalink Normal View History

2025-05-18 17:42:48 +00:00
//
// Created by spenc on 5/14/2025.
//
#include "Editor.h"
#include "Core.h"
int main()
{
using namespace OX;
2025-05-18 17:42:48 +00:00
// Note: You must add the layers to the Core BEFORE initializing the core.
Core core;
2025-05-18 17:42:48 +00:00
core.AddLayer(std::make_unique<Editor>(OX_EDITOR_VERSION));
//core.AddLayer(std::make_unique<OX::DummyLayer>());
2025-05-21 14:25:43 +00:00
2025-05-18 17:42:48 +00:00
core.Init();
core.Run();
core.Shutdown();
2025-05-19 16:25:41 +00:00
}