Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
ControlBar.hpp
1#pragma once
2
3#include "Editor/EditorManager.hpp"
4
5namespace Grindstone {
6 namespace Editor {
7 namespace ImguiEditor {
8 class ImguiRenderer;
9
10 class ControlBar {
11 public:
12 ControlBar(ImguiRenderer* imguiRenderer);
13 void Render();
14 private:
15 bool RenderButton(ImTextureID icon, bool isSelected);
16 void RenderManipulationButton(ImTextureID icon, ManipulationMode& selectedMode, ManipulationMode buttonMode);
17
18 ImVec4 selectedColor;
19 ImVec4 deselectedColor;
20 ImVec4 selectedHighlightColor;
21 ImVec4 deselectedHighlightColor;
22 ImVec4 selectedActiveColor;
23 ImVec4 deselectedActiveColor;
24
25 ImTextureID pauseIcon;
26 ImTextureID playIcon;
27 ImTextureID translateIcon;
28 ImTextureID rotateIcon;
29 ImTextureID scaleIcon;
30 };
31 }
32 }
33}
Definition ImguiRenderer.hpp:12