diff options
author | hnOsmium0001 <[email protected]> | 2022-04-10 22:42:14 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-10 23:00:36 -0700 |
commit | 67affc75a4824dfd8675cc5455d9ee71b1583c1c (patch) | |
tree | e6624157831039ed3c1668b6a4b21337633f41e6 /source/EditorResources.hpp | |
parent | 906557f094e407ce21d429ef647bc75fe3179cf1 (diff) |
Add shader and corresponding editor components
Diffstat (limited to 'source/EditorResources.hpp')
-rw-r--r-- | source/EditorResources.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/EditorResources.hpp b/source/EditorResources.hpp index f4e1ffe..db6a277 100644 --- a/source/EditorResources.hpp +++ b/source/EditorResources.hpp @@ -2,7 +2,7 @@ #include "Shader.hpp" -class EditorInspector; +class EditorInstance; class EditorContentBrowser { private: enum Pane { @@ -17,19 +17,15 @@ private: static constexpr float kLeftPaneMinWidth = 200.0f; static constexpr float kRightPaneMinWidth = 200.0f; - EditorInspector* mInspector; + EditorInstance* mEditor; Pane mPane = P_Settings; float splitterLeft = kLeftPaneMinWidth; float splitterRight = 0.0f; bool docked = true; - bool visible = false; public: - EditorContentBrowser(EditorInspector* inspector); + EditorContentBrowser(EditorInstance* editor); ~EditorContentBrowser(); - bool IsVisible() const; - void SetVisible(bool visible); - - void Show(); + void Show(bool* open = nullptr); }; |