diff options
author | hnOsmium0001 <[email protected]> | 2022-04-09 13:29:41 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-09 13:29:41 -0700 |
commit | 906557f094e407ce21d429ef647bc75fe3179cf1 (patch) | |
tree | 5e6aaed6537a0328318b6cd6561f6a76bf8aa27d /source/EditorResources.hpp | |
parent | e47a98793e58a5dbbe76bfed27e59408e43538e4 (diff) |
More work on editor
Diffstat (limited to 'source/EditorResources.hpp')
-rw-r--r-- | source/EditorResources.hpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/source/EditorResources.hpp b/source/EditorResources.hpp index e868d74..f4e1ffe 100644 --- a/source/EditorResources.hpp +++ b/source/EditorResources.hpp @@ -1,5 +1,35 @@ #pragma once -class EditorResourcePane { +#include "Shader.hpp" +class EditorInspector; +class EditorContentBrowser { +private: + enum Pane { + P_Settings, + P_Shader, + }; + + static constexpr float kSplitterThickness = 3.0f; + static constexpr float kPadding = 4.0f; + + // <root> + static constexpr float kLeftPaneMinWidth = 200.0f; + static constexpr float kRightPaneMinWidth = 200.0f; + + EditorInspector* mInspector; + Pane mPane = P_Settings; + float splitterLeft = kLeftPaneMinWidth; + float splitterRight = 0.0f; + bool docked = true; + bool visible = false; + +public: + EditorContentBrowser(EditorInspector* inspector); + ~EditorContentBrowser(); + + bool IsVisible() const; + void SetVisible(bool visible); + + void Show(); }; |