diff options
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) { |