SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiViewportMenu.cpp
Go to the documentation of this file.
1/**
2* @file ImguiViewportMenu.cpp.
3* @brief The ImguiViewportMenu Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
9
10#include "Systems/SlateSystem.h"
11
12namespace Spices {
13
15 const std::string& panelName ,
16 FrameInfo& frameInfo
17 )
18 : ImguiSlate(panelName, frameInfo)
20 {}
21
23 {
25
26 /**
27 * @brief Begin render Utilities.
28 */
29 std::stringstream ss;
30 ss << ICON_EMPTY << " " << m_PanelName.c_str();
31 if (ImGui::BeginMenu(ss.str().c_str()))
32 {
33 /**
34 * @brief Render Profiler.
35 */
36 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, Viewport0))) {}
37 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_CHECK, Viewport1))) {}
38
39 /**
40 * @brief End render Utilities.
41 */
42 ImGui::EndMenu();
43 }
44 }
45}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
std::string m_PanelName
This slate's name.
Definition ImguiUtils.h:161
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27
virtual void OnRender() override
This interface is called On SlateRenderer Render.
ImguiViewportMenu(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
The ImguiViewportMenu Class. This class defines how to render a ImguiViewport menu.