summaryrefslogtreecommitdiff
path: root/imgui_ops.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-12-03 21:57:53 -0500
committerFox Caminiti <fox@foxcam.net>2022-12-03 21:57:53 -0500
commited27ab2e6bbe40120702dcc57e9b21434bfb4944 (patch)
treeb53af27a4e17855be6336e1f82bd48d91ef711ca /imgui_ops.h
parentdc0d4a23fdbddef51d5e026f2eefef1731c4e338 (diff)
v2.0, effects functional
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 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;