Elevate Engine 1
Loading...
Searching...
No Matches
HierarchyPanel.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef EE_EDITOR_BUILD
4
7
8namespace Elevate
9{
10 class Texture;
11}
12namespace Elevate::Editor
13{
14 class HierarchyPanel : public EditorWidget
15 {
16 public:
17 HierarchyPanel();
18
19 void OnImGuiRender() override;
20 private:
21 void DrawTreeHierarchy(std::shared_ptr<GameObject> object);
22 void EndRename(std::shared_ptr<GameObject> object);
23 private:
24 std::shared_ptr<Texture> m_sceneTexture;
25 std::shared_ptr<Texture> m_objectTexture;
26
27 bool m_renaming = false;
28 std::shared_ptr<GameObject> m_renamedObject = nullptr;
29 char m_renameBuffer[256] = { 0 };
30 };
31}
32
33#endif // EE_EDITOR_BUILD