summaryrefslogtreecommitdiff
path: root/imgui_ops.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-10-20 20:45:37 -0400
committerFox Caminiti <fox@foxcam.net>2022-10-20 20:45:37 -0400
commit7804c6a96d26c2e757d09f1864eb73fb81eb280f (patch)
tree0b8e3f1b6f8a6fdf79fb5ae51844f269e47d5959 /imgui_ops.h
parent0b0aa3b06fac0bcdeb31d5e2211d1ba149531692 (diff)
precomp recursion!
Diffstat (limited to 'imgui_ops.h')
-rw-r--r--imgui_ops.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/imgui_ops.h b/imgui_ops.h
index 629815f..2249de3 100644
--- a/imgui_ops.h
+++ b/imgui_ops.h
@@ -58,6 +58,16 @@ ImVec2 operator/(ImVec2 A, ImVec2 B)
return Result;
}
+ImVec2 operator/(ImVec2 A, real32 B)
+{
+ ImVec2 Result;
+
+ Result.x = A.x / B;
+ Result.y = A.y / B;
+
+ return Result;
+}
+
inline bool32
IsRectTouching(ImVec2 Min1, ImVec2 Max1, ImVec2 Min2, ImVec2 Max2)
{