Debug: draw rasterized DebugLines to screen

GitOrigin-RevId: aa4253477fa8e3657e19c5e0d534a3288bc23a0a
This commit is contained in:
Colin McMillen 2020-01-23 16:15:55 -05:00
parent bba9f643eb
commit e30aa75f80

View File

@ -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);
}
}
}
}
}