mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
26 lines
551 B
C++
26 lines
551 B
C++
#include "EditorApplication.h"
|
|
|
|
#include "Engine.h"
|
|
#include "Windows/EditorInterface.h"
|
|
#include "Misc/GizmoDrawer.h"
|
|
#include "EditorLayer.h"
|
|
|
|
#include <glad/glad.h>
|
|
|
|
|
|
void EditorApplication::OnInit()
|
|
{
|
|
using namespace Nuake;
|
|
|
|
Engine::Init();
|
|
m_Window = Engine::GetCurrentWindow();
|
|
m_Window->SetSize({ m_Specification.WindowWidth, m_Specification.WindowHeight });
|
|
m_Window->SetTitle(m_Specification.Name);
|
|
|
|
PushLayer(CreateScope<EditorLayer>());
|
|
}
|
|
|
|
void EditorApplication::OnShutdown()
|
|
{
|
|
Nuake::Engine::Close();
|
|
} |