简单添加entt实体组件系统库
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user