galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
ImGuiHelpers.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_UI_IMGUIHELPERS_HPP_
9#define GALAXY_UI_IMGUIHELPERS_HPP_
10
11#include <imgui/imgui.h>
12
13namespace galaxy
14{
15 namespace ui
16 {
22 void imgui_init(const char* ini);
23
27 void imgui_new_frame();
28
32 void imgui_render();
33
37 void imgui_exit();
38
44 void imgui_rescale();
45 } // namespace ui
46} // namespace galaxy
47
48/*
52 void imgui_destroy_context();
53
57 void imgui_set_theme();
58
62 void imgui_center_next_window();
63
69 [[nodiscard]]
70 bool imgui_loaded();
71
79 void imgui_popup(const char* id, bool& open, std::move_only_function<void(void)>&& func);
80
88 void imgui_confirm(const char* msg, std::move_only_function<void(void)>&& yes = {}, std::move_only_function<void(void)>&& no = {});
99 [[maybe_unused]]
100 bool imgui_imagebutton(const graphics::Texture2D& texture, const ImVec2& size, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1));
101
108 void imgui_image(const graphics::Texture2D& texture, const ImVec2& size);
109
116 void imgui_image(const graphics::RenderTexture& texture, const ImVec2& size);
117
123 void imgui_notify_success(const char* msg);
124
130 void imgui_notify_info(const char* msg);
131
137 void imgui_notify_warning(const char* msg);
138
144 void imgui_notify_error(const char* msg);
145
154 [[maybe_unused]]
155 bool imgui_glm_vec2(const char* label, glm::vec2& vec);
156
165 [[maybe_unused]]
166 bool imgui_glm_vec3(const char* label, glm::vec3& vec);
167
176 [[maybe_unused]]
177 bool imgui_glm_vec4(const char* label, glm::vec4& vec);
178
187 [[maybe_unused]]
188 bool imgui_frect(const char* label, math::fRect& rect);
189*/
190
191#endif
void imgui_rescale()
Bake a fixed style scale.
void imgui_new_frame()
Begin setting up ImGui pass.
void imgui_exit()
Destroy imgui context.
void imgui_init(const char *ini)
Initialize ImGui context with galaxy.
void imgui_render()
Render imgui.
Application.hpp galaxy.