SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiPreferences.h
Go to the documentation of this file.
1/**
2* @file ImguiPreferences.h
3* @brief The ImguiPreferences Class Definitions.
4* @author Spices.
5*/
6
7#pragma once
8#include "Core/Core.h"
9#include "Slate/Imgui/ImguiUtils.h"
10
11namespace Spices {
12
13 /**
14 * @brief Forward declare.
15 */
18
19 /**
20 * @brief The ImguiPreferences Class.
21 * This class defines how to render a edit menu.
22 */
24 {
25 public:
26
27 /**
28 * @brief Constructor Function.
29 * @param[in] panelName The Slate's name to show.
30 * @param[in] frameInfo The Frame Date that in use.
31 */
33 const std::string& panelName ,
34 FrameInfo& frameInfo
35 );
36
37 /**
38 * @brief Destructor Function.
39 */
40 virtual ~ImguiPreferences() override = default;
41
42 /**
43 * @brief This interface is called On SlateSystem Update.
44 * @param[in] ts TimeStep.
45 */
46 virtual void OnUpdate(TimeStep& ts) override {}
47
48 /**
49 * @brief This interface is called On SlateRenderer Render.
50 */
51 virtual void OnRender() override;
52
53 /**
54 * @brief This interface is called On Global Event Function Pointer is called.
55 */
56 virtual void OnEvent(Event& event) override {}
57
58 private:
59
62 };
63
64}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#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
static void MainMenuTitleSeparator()
Draw main menu titile separator.
The ImGuiH Class. This class defines helper function for slate render.
Definition ImguiHelper.h:61
The ImguiDisplayOptions Class. This class defines how to render a edit menu.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
Definition ImguiEdit.h:45
std::shared_ptr< ImguiPreferences > m_ImguiPreferences
Definition ImguiEdit.h:59
virtual ~ImguiEdit() override=default
Destructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
Definition ImguiEdit.cpp:29
ImguiEdit(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
Definition ImguiEdit.cpp:15
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
Definition ImguiEdit.h:55
The ImguiEdit Class. This class defines how to render a edit menu.
Definition ImguiEdit.h:23
The ImguiPostProcessing Class. This class defines how to render a PostProcessing options.
ImguiPreferences(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
std::shared_ptr< ImguiDisplayOptions > m_ImguiDisplayOptions
virtual ~ImguiPreferences() override=default
Destructor Function.
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
std::shared_ptr< ImguiPostProcessing > m_ImguiPostProcessing
The ImguiPreferences Class. This class defines how to render a edit menu.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22