#pragma once #include "Shader.hpp" #include class EditorInstance; class EditorContentBrowser { private: enum Pane { P_Settings, P_Shader, P_Material, }; static constexpr float kSplitterThickness = 3.0f; static constexpr float kPadding = 4.0f; // static constexpr float kLeftPaneMinWidth = 200.0f; static constexpr float kRightPaneMinWidth = 200.0f; EditorInstance* mEditor; Pane mPane = P_Settings; float splitterLeft = kLeftPaneMinWidth; float splitterRight = 0.0f; bool docked = true; public: EditorContentBrowser(EditorInstance* editor); ~EditorContentBrowser(); void Show(bool* open = nullptr); };