diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-10-20 20:45:37 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-10-20 20:45:37 -0400 |
commit | 7804c6a96d26c2e757d09f1864eb73fb81eb280f (patch) | |
tree | 0b8e3f1b6f8a6fdf79fb5ae51844f269e47d5959 /imgui_ops.h | |
parent | 0b0aa3b06fac0bcdeb31d5e2211d1ba149531692 (diff) |
precomp recursion!
Diffstat (limited to 'imgui_ops.h')
-rw-r--r-- | imgui_ops.h | 10 |
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) { |