diff options
author | rtk0c <[email protected]> | 2022-04-10 23:00:36 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-10 23:00:36 -0700 |
commit | 17d5b091c9b2901ac96f5eee0da6af07228ae690 (patch) | |
tree | c210229c4bee1d3f56a64eacf1f976dfd8f971a7 /source/EditorCore.hpp | |
parent | a849c199d970e153580c312a24cfdfa099bc7b69 (diff) |
Changeset: 5 Add shader and corresponding editor components
Diffstat (limited to 'source/EditorCore.hpp')
-rw-r--r-- | source/EditorCore.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/EditorCore.hpp b/source/EditorCore.hpp index a9ef93a..28ad849 100644 --- a/source/EditorCore.hpp +++ b/source/EditorCore.hpp @@ -1,7 +1,6 @@ #pragma once #include "EditorAttachment.hpp" -#include "EditorInspector.hpp" #include "EditorResources.hpp" #include "GameObject.hpp" #include "World.hpp" @@ -11,12 +10,20 @@ class App; class EditorInstance { +public: + enum InspectorTargetType { + ITT_GameObject, + ITT_Shader, + ITT_None, + }; + private: App* mApp; GameWorld* mWorld; - GameObject* mSelectedGameObject = nullptr; - EditorInspector mEdInspector; + void* mSelectedItPtr = nullptr; EditorContentBrowser mEdContentBrowser; + InspectorTargetType mSelectedItt = ITT_None; + bool mEdContentBrowserVisible=false; public: EditorInstance(App* app, GameWorld* world); @@ -24,9 +31,14 @@ public: void Show(); + void* GetSelectedItPtr() const { return mSelectedItPtr; } + InspectorTargetType GetSelectedItt() const { return mSelectedItt; } + void SelectIt(void* ptr, InspectorTargetType itt); + private: void ShowWorldProperties(); + void ShowInspector(Shader* shader); void ShowInspector(GameObject* object); void ShowGameObjecetFields(GameObject* object); |