SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiAbout.cpp
Go to the documentation of this file.
1/**
2* @file ImguiAbout.cpp.
3* @brief The ImguiAbout Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
8#include "ImguiAbout.h"
9
10#include "Systems/SlateSystem.h"
11
12namespace Spices {
13
15 const std::string& panelName ,
16 FrameInfo& frameInfo
17 )
18 : ImguiSlate(panelName, frameInfo)
19 {}
20
22 {
24
25 if (!m_IsSlateOn) return;
26
27 /**
28 * @brief Begin render About.
29 */
30 Begin();
31
32 ImGui::Text("Spices Engine Version 0.0.1");
33
34 const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing();
35 ImGui::PushStyleColor(ImGuiCol_ChildBg, ImGui::GetStyleColorVec4(ImGuiCol_FrameBg));
36 if (ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), ImGuiChildFlags_None, ImGuiWindowFlags_HorizontalScrollbar))
37 {
38 ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1));
39
40 ImGui::Text("Spices Engine Version 0.0.1\n\n");
41
42
43 ImGui::PopStyleVar();
44 }
45 ImGui::PopStyleColor();
46 ImGui::EndChild();
47
48 /**
49 * @brief End render About.
50 */
51 End();
52 }
53}
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
ImguiAbout(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
virtual void OnRender() override
This interface is called On SlateRenderer Render.
The ImguiAbout Class. This class defines how to render a About.
Definition ImguiAbout.h:18
void End()
End a slate.
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