Browse Source

add Debug.WriteLine delegate

GitOrigin-RevId: 485ca1507f
master
Colin McMillen 4 years ago
parent
commit
22a0fab70f
  1. 7
      Jumpy.Shared/Debug.cs

7
Jumpy.Shared/Debug.cs

@ -19,7 +19,14 @@ namespace Jumpy {
static List<DebugRect> rects = new List<DebugRect>();
static Texture2D whiteTexture;
public static void WriteLine(string s) {
System.Diagnostics.Debug.WriteLine(s);
}
public static void WriteLine(string s, params object[] args) {
System.Diagnostics.Debug.WriteLine(s, args);
}
public static void Initialize(GraphicsDevice graphics) {
whiteTexture = new Texture2D(graphics, 1, 1);
whiteTexture.SetData(new Color[] { Color.White });

Loading…
Cancel
Save