blob: 65969f0aa0fe9e81c0d3899cb1a95aa9d7a27110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "Shader.hpp"
#include <string>
class EditorInstance;
class EditorContentBrowser {
private:
enum Pane {
P_Settings,
P_Shader,
P_Material,
P_Ires,
};
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;
EditorInstance* mEditor;
Pane mPane = P_Settings;
float mBrowserHeight = 0.5f;
float mSplitterLeft = kLeftPaneMinWidth;
float mSplitterRight = 0.0f;
bool mDocked = true;
public:
EditorContentBrowser(EditorInstance* editor);
~EditorContentBrowser();
void Show(bool* open = nullptr);
};
|