add ApplicationSpecification

This commit is contained in:
2025-07-09 17:41:24 +08:00
parent 9a1700ebf8
commit 7c5511aa43
2 changed files with 11 additions and 8 deletions

View File

@ -9,20 +9,23 @@ namespace Hazel
class HazelEditor : public Application
{
public:
HazelEditor()
: Application("Hazel Editor", 1920, 1080)
HazelEditor(const ApplicationSpecification& specification)
: Application(specification)
{
PushLayer(new EditorLayer());
}
~HazelEditor() = default;
private:
};
Application* CreateApplication()
Application* CreateApplication(ApplicationCommandLineArgs args)
{
return new HazelEditor();
ApplicationSpecification spec;
spec.name = "Editor app";
spec.commandLineArgs = args;
return new HazelEditor(spec);
}
}