TazGraph Project v0.1.0
Loading...
Searching...
No Matches
GraphMiddlePanel.h
1#pragma once
2
3
4#include "../../UIElement.h"
5
6#include "ViewportPanel/ViewportPanel.h"
7#include "GraphTopBar/GraphTopBar.h"
8#include "../PythonInterpreterPanel/PythonInterpreterPanel.h"
9
11 IScene* scene;
12 Framebuffer* c_framebuffer;
13 Framebuffer* c_minimapFramebuffer;
14 ImVec2* c_viewportPos;
15 ImVec2* c_viewportSize;
16 glm::vec2 startPos;
17 glm::vec2 currPos;
18};
19
21{
22public:
24
26
27 }
28
29 GraphMiddlePanel(bool usePython) {
30 addUIComponent<GraphTopBar>();
31 addUIComponent<ViewportPanel>();
32 if (usePython) {
33 addUIComponent<PythonInterpreterPanel>();
34 }
35 }
36
37 void setConfig(const GraphMiddlePanelConfig& cfg) { config = cfg; }
38 void OnImGuiRender() override;
39};
Definition Framebuffer.h:6
Definition GraphMiddlePanel.h:21
Definition IScene.h:25
Definition UIElement.h:16
Definition GraphMiddlePanel.h:10