aboutsummaryrefslogtreecommitdiff
path: root/source/Game/EditorUtils.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 23:30:01 -0700
committerrtk0c <[email protected]>2022-06-03 23:30:01 -0700
commit791b3f354b378769bffe623b05f1305c91b77101 (patch)
tree5409b311e6232eb4a6d3f8259b780d76b8ee1c59 /source/Game/EditorUtils.hpp
parent60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (diff)
Changeset: 64 [WIP] Rename directoriesmaster-switch-to-build2
Diffstat (limited to 'source/Game/EditorUtils.hpp')
-rw-r--r--source/Game/EditorUtils.hpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/source/Game/EditorUtils.hpp b/source/Game/EditorUtils.hpp
deleted file mode 100644
index 99c522b..0000000
--- a/source/Game/EditorUtils.hpp
+++ /dev/null
@@ -1,63 +0,0 @@
-#pragma once
-
-#include "Color.hpp"
-#include "EditorGuizmo.hpp"
-
-#include <imgui.h>
-#include <string>
-
-// To check whether a payload is of this type, use starts_with()
-#define BRUSSEL_TAG_PREFIX_GameObject "GameObject"
-#define BRUSSEL_TAG_PREFIX_Ires "Ires"
-
-#define BRUSSEL_TAG_Level "Level"
-
-namespace ImGui {
-
-const char* GetKeyNameGlfw(int key);
-
-void SetNextWindowSizeRelScreen(float xPercent, float yPercent, ImGuiCond cond = ImGuiCond_None);
-void SetNextWindowCentered(ImGuiCond cond = ImGuiCond_None);
-
-void PushDisabled();
-void PopDisabled();
-
-bool Button(const char* label, bool disabled);
-bool Button(const char* label, const ImVec2& sizeArg, bool disabled);
-
-bool ColorEdit3(const char* label, RgbaColor* color, ImGuiColorEditFlags flags = 0);
-bool ColorEdit4(const char* label, RgbaColor* color, ImGuiColorEditFlags flags = 0);
-bool ColorPicker3(const char* label, RgbaColor* color, ImGuiColorEditFlags flags = 0);
-bool ColorPicker4(const char* label, RgbaColor* color, ImGuiColorEditFlags flags = 0);
-
-bool Splitter(bool splitVertically, float thickness, float* size1, float* size2, float minSize1, float minSize2, float splitterLongAxisSize = -1.0f);
-
-void AddUnderLine(ImColor col);
-
-enum class IconType {
- Flow,
- Circle,
- Square,
- Grid,
- RoundSquare,
- Diamond,
-};
-
-void DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor);
-void Icon(const ImVec2& size, IconType type, bool filled, const ImVec4& color = ImVec4(1, 1, 1, 1), const ImVec4& innerColor = ImVec4(0, 0, 0, 0));
-
-void DrawArrow(ImDrawList* drawList, ImVec2 from, ImVec2 to, ImU32 color, float lineThickness = 1.0f);
-
-// NOTE: string is copied into an internal storage
-void DialogConfirmation(std::string message, std::function<void(bool)> callback);
-void ShowDialogs();
-
-} // namespace ImGui
-
-namespace Utils {
-
-float CalcImageHeight(glm::vec2 original, int targetWidth);
-float CalcImageWidth(glm::vec2 original, float targetHeight);
-ImVec2 FitImage(glm::vec2 original);
-
-} // namespace Utils