From e30aa75f8081561cb699d8e02f716512d546f546 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 23 Jan 2020 16:15:55 -0500 Subject: [PATCH] Debug: draw rasterized DebugLines to screen GitOrigin-RevId: aa4253477fa8e3657e19c5e0d534a3288bc23a0a --- Shared/Debug.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index ada399d..10cddf2 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -99,6 +99,13 @@ namespace SemiColinGames { spriteBatch.Draw( whiteTexture, new Rectangle(rect.Right - 1, rect.Top, 1, rect.Height), color); } + foreach (var line in lines) { + Point[] points = Line.Rasterize(line.Start, line.End); + foreach (var point in points) { + spriteBatch.Draw( + whiteTexture, new Rectangle(point.X, point.Y, 1, 1), line.Color); + } + } } } }