TazGraph Project v0.1.0
Loading...
Searching...
No Matches
ViewportPanel.h
1#pragma once
2
3
4#include "../../../UIElement.h"
5
6#include "Minimap/Minimap.h"
7#include "OrientationBox/OrientationBox.h"
8#include "HighlightBox/HighlightBox.h"
9#include "SceneControl/SceneControl.h"
10#include "HoverEntityPanel/HoverEntityPanel.h"
11#include "../../EntityGroupsControl/EntityGroupsControl.h"
12
13
15 Framebuffer* c_fb;
16 Framebuffer* c_minimap_fb;
17 ImVec2* c_storedWindowPos;
18 ImVec2* c_storedWindowSize;
19 glm::vec2 startPos;
20 glm::vec2 currPos;
21};
22
24{
25private:
27
28public:
29
31 addUIComponent<Minimap>();
32 addUIComponent<OrientationBox>();
33 addUIComponent<SceneControlPanel>();
34 addUIComponent<HoverEntityPanel>();
35 addUIComponent<HighlightBox>();
36 addUIComponent<EntityGroupsControlPanel>();
37 }
38
39 bool isMouseInSecondColumn = false;
40
41 void setConfig(const ViewportPanelConfig& cfg) { config = cfg; }
42 void OnImGuiRender() override;
43 void updateIsMouseInSecondColumn();
44};
Definition Framebuffer.h:6
Definition UIElement.h:16
Definition ViewportPanel.h:24
Definition ViewportPanel.h:14