From 4c2437e1ac5e4c5aaca1a7e563b657b5928f635c Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 11 Mar 2020 12:44:14 -0400 Subject: [PATCH] add Debug.AddPoint() --- Shared/Debug.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index adb2647..41b7836 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -90,6 +90,12 @@ namespace SemiColinGames { AddRect(rect, color); } + [System.Diagnostics.Conditional("DEBUG")] + public static void AddPoint(Point p, Color color) { + AddLine(p.X, p.Y - 2, p.X, p.Y + 1, color); + AddLine(p.X - 2, p.Y, p.X + 1, p.Y, color); + } + [System.Diagnostics.Conditional("DEBUG")] public static void AddLine(Point start, Point end, Color color) { if (lineIdx >= MAX_LINE_VERTICES) {