Onyx-Engine/main.cpp

23 lines
460 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()
{
2025-05-19 16:25:41 +00:00
constexpr const char* VERSION = "0.0.7"; // Format: 0.<release><commit_count>
constexpr const char* TITLE = "Obsidian Editor - Onyx Engine (2025.1)";
2025-05-18 17:42:48 +00:00
2025-05-19 16:25:41 +00:00
OX::Core core(std::string(TITLE) + " (" + VERSION + ")");
2025-05-18 17:42:48 +00:00
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
core.Init();
core.Run();
core.Shutdown();
2025-05-19 16:25:41 +00:00
}