feat: Add dynamic entity list
This commit is contained in:
parent
5fa8dda890
commit
bf88324170
@ -3,6 +3,8 @@
|
|||||||
#include <imgui_impl_opengl3.h>
|
#include <imgui_impl_opengl3.h>
|
||||||
#include "GUI.h"
|
#include "GUI.h"
|
||||||
|
|
||||||
|
#include <Editor.h>
|
||||||
|
|
||||||
#include "FrameBuffer.h"
|
#include "FrameBuffer.h"
|
||||||
#include "Window.h"
|
#include "Window.h"
|
||||||
|
|
||||||
@ -146,7 +148,10 @@ void GUI::ShowEntities()
|
|||||||
{
|
{
|
||||||
ImGui::Begin(ICON_FA_CUBE" Entities");
|
ImGui::Begin(ICON_FA_CUBE" Entities");
|
||||||
|
|
||||||
ImGui::CollapsingHeader("Cube");
|
for(const auto& cube : Renderer::GetData().m_Scene->GetCubes())
|
||||||
|
{
|
||||||
|
ImGui::CollapsingHeader(cube->name.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user