Added command buffer implementation in the editor layer

This commit is contained in:
Antoine Pilote
2024-04-27 19:13:11 -04:00
parent bff56e9e39
commit f9081f669e
9 changed files with 99 additions and 22 deletions

View File

@@ -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();
}