From 906557f094e407ce21d429ef647bc75fe3179cf1 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Sat, 9 Apr 2022 13:29:41 -0700 Subject: More work on editor --- source/EditorResources.hpp | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'source/EditorResources.hpp') 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; + + // + 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(); }; -- cgit v1.2.3-70-g09d2