blob: 81145a392a698e36df74f5db9cd7b9e835f03427 (
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
|
#pragma once
#include "Shader.hpp"
#include <string>
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;
// <root>
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);
};
|