aboutsummaryrefslogtreecommitdiff
path: root/source/EditorResources.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-04-09 13:29:41 -0700
committerrtk0c <[email protected]>2022-04-09 13:29:41 -0700
commita849c199d970e153580c312a24cfdfa099bc7b69 (patch)
tree1b5faa8d40953ee451103b94349bb84c738677ee /source/EditorResources.hpp
parente7ef3f208c109357538b1f68af10bcd78db95c95 (diff)
Changeset: 4 More work on editor
Diffstat (limited to 'source/EditorResources.hpp')
-rw-r--r--source/EditorResources.hpp32
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();
};