From ed27ab2e6bbe40120702dcc57e9b21434bfb4944 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sat, 3 Dec 2022 21:57:53 -0500 Subject: v2.0, effects functional --- 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 2bf6335..6089f94 100644 --- a/imgui_ops.h +++ b/imgui_ops.h @@ -20,6 +20,16 @@ ImVec2 operator+(ImVec2 A, int B) return Result; } +ImVec2 operator-(ImVec2 A, int B) +{ + ImVec2 Result; + + Result.x = A.x - B; + Result.y = A.y - B; + + return Result; +} + ImVec2 operator-(ImVec2 A, ImVec2 B) { ImVec2 Result; -- cgit v1.2.3