SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiCreateEntity.h
Go to the documentation of this file.
1/**
2* @file ImguiCreateEntity.h
3* @brief The ImguiCreateEntity 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 */
17
18 /**
19 * @brief The ImguiCreateEntity Class.
20 * This class defines how to render a Create.
21 */
23 {
24 public:
25
26 /**
27 * @brief Constructor Function.
28 * @param[in] panelName The Slate's name to show.
29 * @param[in] frameInfo The Frame Date that in use.
30 */
32 const std::string& panelName ,
33 FrameInfo& frameInfo
34 );
35
36 /**
37 * @brief Destructor Function.
38 */
39 virtual ~ImguiCreateEntity() override = default;
40
41 /**
42 * @brief This interface is called On SlateSystem Update.
43 * @param[in] ts TimeStep.
44 */
45 virtual void OnUpdate(TimeStep& ts) override {};
46
47 /**
48 * @brief This interface is called On SlateRenderer Render.
49 */
50 virtual void OnRender() override;
51
52 /**
53 * @brief This interface is called On Global Event Function Pointer is called.
54 */
55 virtual void OnEvent(Event& event) override {};
56 };
57}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
CubePack Class. This class defines box type mesh pack.
Definition MeshPack.h:446
This Class is the basic Event Class. Inherit from it and create specific event class.
Definition Event.h:96
static FrameInfo & Get()
Get FrameInfo.
Definition FrameInfo.cpp:14
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
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
virtual ~ImguiCreateEntity() override=default
Destructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
virtual void OnUpdate(TimeStep &ts) override
This interface is called On SlateSystem Update.
ImguiCreateEntity(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
The ImguiCreateEntity Class. This class defines how to render a Create.
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
PlanePack Class. This class defines plane type mesh pack.
Definition MeshPack.h:397
SpherePack Class. This class defines sphere type mesh pack.
Definition MeshPack.h:494
This Class handles our engine time step during frames. Global Unique.
Definition TimeStep.h:22
World Functions Class.