![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
#include <functional>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <imgui/imgui_stdlib.h>
#include "galaxy/math/Rect.hpp"
Go to the source code of this file.
Namespaces | |
namespace | galaxy |
Timer.hpp galaxy. | |
namespace | galaxy::graphics |
namespace | galaxy::ui |
Functions | |
ImGuiIO & | galaxy::ui::imgui_init_context (const char *ini) |
Initialize ImGui context with galaxy. | |
void | galaxy::ui::imgui_new_frame () |
New imgui frame with galaxy. | |
void | galaxy::ui::imgui_render () |
Render imgui with galaxy. | |
void | galaxy::ui::imgui_destroy_context () |
Cleanup imgui resources used by galaxy. | |
void | galaxy::ui::imgui_set_theme () |
Set our theme. | |
void | galaxy::ui::imgui_popup (const char *id, bool &open, std::move_only_function< void(void)> &&func) |
Cleaner way of rendering an ImGui popup. | |
void | galaxy::ui::imgui_confirm (const char *msg, std::move_only_function< void(void)> &&yes={}, std::move_only_function< void(void)> &&no={}) |
Handles a popup for a yes/no situation. | |
void | galaxy::ui::imgui_center_next_window () |
Make sure the next window opened is centered on the monitor. | |
void | galaxy::ui::scale_and_load_fonts () |
Scale and load fonts. | |
bool | galaxy::ui::imgui_loaded () |
Is ImGui loaded? | |
bool | galaxy::ui::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)) |
Render an imgui image button with a galaxy texture. | |
void | galaxy::ui::imgui_image (const graphics::Texture2D &texture, const ImVec2 &size) |
Display a galaxy image with imgui. | |
void | galaxy::ui::imgui_image (const graphics::RenderTexture &texture, const ImVec2 &size) |
Display a galaxy image with imgui. | |
void | galaxy::ui::imgui_notify_success (const char *msg) |
ImGui success notification. | |
void | galaxy::ui::imgui_notify_info (const char *msg) |
ImGui info notification. | |
void | galaxy::ui::imgui_notify_warning (const char *msg) |
ImGui warning notification. | |
void | galaxy::ui::imgui_notify_error (const char *msg) |
ImGui error notification. | |
bool | galaxy::ui::imgui_glm_vec2 (const char *label, glm::vec2 &vec) |
GLM vector 2 widget. | |
bool | galaxy::ui::imgui_glm_vec3 (const char *label, glm::vec3 &vec) |
GLM vector 3 widget. | |
bool | galaxy::ui::imgui_glm_vec4 (const char *label, glm::vec4 &vec) |
GLM vector 4 widget. | |
bool | galaxy::ui::imgui_frect (const char *label, math::fRect &rect) |
fRect widget. | |