The Mega Snivy Update
Some checks failed
Build / Build Game (push) Has been cancelled

This commit is contained in:
2026-02-28 21:48:00 -05:00
parent 8b2edd1359
commit 17f3348e94
163 changed files with 8725 additions and 13281 deletions

25
src/util/imgui.hpp Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <imgui.h>
#include <glm/glm.hpp>
using namespace glm;
namespace game::util::imgui
{
float row_widget_width_get(int = 1, float = ImGui::GetContentRegionAvail().x);
ImVec2 row_widget_size_get(int = 1, float = ImGui::GetContentRegionAvail().x);
float footer_height_get(int = 1);
ImVec2 footer_size_get(int = 1);
ImVec2 size_without_footer_get(int = 1);
inline ImVec2 to_imvec2(vec2 value) { return ImVec2(value.x, value.y); }
inline ImVec2 to_imvec2(ivec2 value) { return ImVec2(value.x, value.y); }
inline vec2 to_vec2(ImVec2 value) { return vec2(value.x, value.y); }
inline ivec2 to_ivec2(ImVec2 value) { return ivec2(value.x, value.y); }
inline ImVec4 to_imvec4(vec4 value) { return ImVec4(value.r, value.g, value.b, value.a); }
inline vec4 to_vec4(ImVec4 value) { return vec4(value.x, value.y, value.z, value.w); }
}