diff options
author | hnOsmium0001 <[email protected]> | 2022-04-18 20:59:57 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-18 20:59:57 -0700 |
commit | 2a5234a512c19582d261a7ccb692fc634dcb74f0 (patch) | |
tree | 0f52925373115319a9ad7d03600e566c59a86566 /source/EditorUtils.cpp | |
parent | f77e73c01a15426bcc6e3d7fe5826d2a741fed38 (diff) |
Migrate Material to Ires
Diffstat (limited to 'source/EditorUtils.cpp')
-rw-r--r-- | source/EditorUtils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |