add Debug.AddPoint, enable debug by default
This commit is contained in:
parent
239dc167f9
commit
a01c4a1d51
@ -27,7 +27,7 @@ namespace SemiColinGames {
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Enabled = false;
|
||||
public static bool Enabled = true;
|
||||
// This is a LinkedList instead of a List because SetFpsText() adds to its front.
|
||||
static readonly LinkedList<string> toasts = new LinkedList<string>();
|
||||
// Lines in excess of MAX_LINES get dropped on the floor.
|
||||
@ -91,6 +91,11 @@ namespace SemiColinGames {
|
||||
AddRect(rect, color);
|
||||
}
|
||||
|
||||
[Conditional("DEBUG")]
|
||||
public static void AddPoint(Vector2 v, Color color) {
|
||||
AddPoint(v.ToPoint(), color);
|
||||
}
|
||||
|
||||
[Conditional("DEBUG")]
|
||||
public static void AddPoint(Point p, Color color) {
|
||||
AddLine(p.X, p.Y - 2, p.X, p.Y + 1, color);
|
||||
|
Loading…
Reference in New Issue
Block a user