editor setup
This commit is contained in:
31
editor/src/editor.cpp
Normal file
31
editor/src/editor.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include <open_engine/entry_point.hpp>
|
||||
|
||||
#include <open_engine.hpp>
|
||||
#include <editor.hpp>
|
||||
|
||||
#include <control_layer.hpp>
|
||||
#include <overlay.hpp>
|
||||
#include <modding.hpp>
|
||||
|
||||
#include <editor.hpp>
|
||||
|
||||
EditorApp::EditorApp()
|
||||
{
|
||||
OpenEngine::Ref<OpenEngine::Layer> initial_layer = std::make_shared<EditorLayer>();
|
||||
OpenEngine::Ref<OpenEngine::Layer> control_layer = std::make_shared<ControlLayer>(initial_layer);
|
||||
OpenEngine::Ref<OpenEngine::Layer> modding_layer = std::make_shared<Modding>();
|
||||
|
||||
QueueLayerPush(initial_layer);
|
||||
QueueLayerPush(control_layer);
|
||||
QueueLayerPush(modding_layer);
|
||||
}
|
||||
|
||||
EditorApp::~EditorApp()
|
||||
{
|
||||
}
|
||||
|
||||
OpenEngine::Application* OpenEngine::CreateApplication()
|
||||
{
|
||||
OE_INFO("Editor Starting...");
|
||||
return new EditorApp();
|
||||
}
|
||||
Reference in New Issue
Block a user