From 2a5234a512c19582d261a7ccb692fc634dcb74f0 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Mon, 18 Apr 2022 20:59:57 -0700 Subject: Migrate Material to Ires --- source/EditorUtils.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/EditorUtils.cpp') diff --git a/source/EditorUtils.cpp b/source/EditorUtils.cpp index 4863301..488d345 100644 --- a/source/EditorUtils.cpp +++ b/source/EditorUtils.cpp @@ -161,6 +161,13 @@ bool ImGui::Splitter(bool splitVertically, float thickness, float* size1, float* return held; } +void ImGui ::AddUnderLine(ImColor col) { + auto min = ImGui::GetItemRectMin(); + auto max = ImGui::GetItemRectMax(); + min.y = max.y; + ImGui::GetWindowDrawList()->AddLine(min, max, col, 1.0f); +} + float Utils::CalcImageHeight(glm::vec2 original, int targetWidth) { // Xorig / Yorig = Xnew / Ynew // Ynew = Xnew * Yorig / Xorig -- cgit v1.2.3-70-g09d2