From 7804c6a96d26c2e757d09f1864eb73fb81eb280f Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Thu, 20 Oct 2022 20:45:37 -0400 Subject: precomp recursion! --- imgui_ops.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'imgui_ops.h') 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) { -- cgit v1.2.3