简单添加entt实体组件系统库

This commit is contained in:
2025-05-29 21:21:15 +08:00
parent 1da0252d6a
commit 31c77dcb5e
43 changed files with 95682 additions and 250 deletions

View File

@ -1,31 +1,28 @@
#include <Hazel.h>
#include "Hazel/Core/EntryPoint.h"
#include "SandBox2D/SandBox2D.h"
// #include "DemoBox/GameLayer.h"
// #include "Example/ExampleLayer.h"
#include "Editor/EditorLayer.h"
class Sandbox : public Hazel::Application
namespace Hazel
{
public:
Sandbox()
class HazelEditor : public Application
{
// PushLayer(new ExampleLayer());
PushLayer(new SandBox2D());
// PushLayer(new GameLayer());
public:
HazelEditor()
: Application("Hazel Editor", 1280, 720)
{
PushLayer(new EditorLayer());
}
~HazelEditor() = default;
private:
};
Application* CreateApplication()
{
return new HazelEditor();
}
~Sandbox();
private:
};
Sandbox::~Sandbox() = default;
Hazel::Application* Hazel::CreateApplication()
{
return new Sandbox();
}