SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiViewportMenu.h
Go to the documentation of this file.
1/**
2* @file ImguiViewportMenu.h
3* @brief The ImguiViewportMenu Class Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9#include "Slate/Imgui/ImguiUtils.h"
10
11#define MaxViewportNum 2
12
13namespace Spices {
14
15 /**
16 * @brief The ImguiViewportMenu Class.
17 * This class defines how to render a ImguiViewport menu.
18 */
20 {
21 public:
22
23 /**
24 * @brief Constructor Function.
25 * @param[in] panelName The Slate's name to show.
26 * @param[in] frameInfo The Frame Date that in use.
27 */
29 const std::string& panelName,
30 FrameInfo& frameInfo
31 );
32
33 /**
34 * @brief Destructor Function.
35 */
36 virtual ~ImguiViewportMenu() override = default;
37
38 /**
39 * @brief This interface is called On SlateSystem Update.
40 * @param[in] ts TimeStep.
41 */
42 virtual void OnUpdate(TimeStep& ts) override {};
43
44 /**
45 * @brief This interface is called On SlateRenderer Render.
46 */
47 virtual void OnRender() override;
48
49 /**
50 * @brief This interface is called On Global Event Function Pointer is called.
51 */
52 virtual void OnEvent(Event& event) override {};
53
54 private:
56 };
57}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#define MaxViewportNum
#define SPICES_PROFILE_ZONE
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
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.
std::array< bool, MaxViewportNum > m_ViewportVisible
ImguiViewportMenu(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual ~ImguiViewportMenu() override=default
Destructor Function.
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
The ImguiViewportMenu Class. This class defines how to render a ImguiViewport menu.
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22