mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Added command buffer implementation in the editor layer
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
void EditorLayer::OnAttach()
|
||||
{
|
||||
m_EditorInterface = new Nuake::EditorInterface();
|
||||
m_EditorInterface = new Nuake::EditorInterface(mCommandBuffer);
|
||||
m_GizmoDrawer = new GizmoDrawer(m_EditorInterface);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ void EditorLayer::OnUpdate()
|
||||
|
||||
auto sceneFramebuffer = GetApplication().GetWindow()->GetFrameBuffer();
|
||||
|
||||
|
||||
// Draw gizmos
|
||||
if (Ref<Nuake::Scene> currentScene = Nuake::Engine::GetCurrentScene(); currentScene)
|
||||
{
|
||||
@@ -64,6 +63,7 @@ void EditorLayer::OnUpdate()
|
||||
|
||||
m_EditorInterface->Draw();
|
||||
m_EditorInterface->Update(Nuake::Engine::GetTimestep());
|
||||
|
||||
Nuake::Engine::EndDraw();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user