mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Refactor Shader uniform API + Added back NuakeUI
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <glad/glad.h>
|
||||
|
||||
#include "src/UI/NuakeUI.h"
|
||||
#include "src/UI/UIInputManager.h"
|
||||
|
||||
void EditorApplication::OnInit()
|
||||
{
|
||||
@@ -71,6 +73,16 @@ void EditorApplication::OnInit()
|
||||
}
|
||||
});
|
||||
|
||||
NuakeUI::CanvasParser parser;
|
||||
Ref<NuakeUI::Canvas> canvas = parser.Parse("test.html");
|
||||
|
||||
static MyInputManager inputManager(*m_Window);
|
||||
|
||||
canvas->SetInputManager(&inputManager);
|
||||
canvas->ComputeLayout({1920, 1080});
|
||||
canvas->Tick();
|
||||
canvas->Draw();
|
||||
|
||||
PushLayer(CreateScope<EditorLayer>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user