Onyx-Engine/main.cpp

24 lines
467 B
C++
Raw Normal View History

2025-05-18 17:42:48 +00:00
//
// Created by spenc on 5/14/2025.
//
#include "Editor.h"
#include "Layer.h"
#include "Core.h"
int main()
{
constexpr const char* VERSION = "0.1.0"; // Format: 0.<release><commit_count>
2025-05-18 17:42:48 +00:00
OX::Core core(std::string(OX_ENGINE_VERSION) + " (" + VERSION + ")");
2025-05-18 18:29:55 +00:00
core.AddLayer(std::make_unique<OX::Editor>("Obsidian Editor"));
2025-05-18 17:42:48 +00:00
2025-05-21 14:25:43 +00:00
//core.AddLayer(std::make_unique<OX::DummyLayer>("Dummy Layer"));
2025-05-18 17:42:48 +00:00
core.Init();
core.Run();
core.Shutdown();
2025-05-19 16:25:41 +00:00
}