public void InitiateFarseerDebugView(GraphicsDevice graphics, ContentManager content, World world) { // create and configure the debug view this.farseerDebugView = new FarseerDebugView(world); this.farseerDebugView.AppendFlags(DebugViewFlags.DebugPanel); this.farseerDebugView.DefaultShapeColor = Color.White; this.farseerDebugView.SleepingShapeColor = Color.LightGray; this.farseerDebugView.LoadContent(graphics, content); }
public override void Draw(RenderTarget target) { target.Draw(_background); foreach (var e in EntitiesInRegion(Program.Camera.Bounds)) { e.Draw(target); } #if DEBUG var debugView = new FarseerDebugView(World); debugView.AppendFlags(DebugViewFlags.Shape); debugView.Draw(target); #endif }